CVE-2024-22197
HIGH 8.8CVSS 3.1Authenticated (user role) remote command execution by modifying `nginx` settings (GHSL-2023-269)
Nginx-ui is online statistics for Server Indicators Monitor CPU usage, memory usage, load average, and disk usage in real-time. The Home > Preference page exposes a small list of nginx settings such as Nginx Access Log Path and Nginx Error Log Path. However, the API also exposes test_config_cmd, reload_cmd and restart_cmd. While the UI doesn't allow users to modify any of these settings, it is possible to do so by sending a request to the API. This issue may lead to authenticated Remote Code Execution, Privilege Escalation, and Information Disclosure. This issue has been patched in version 2.0.0.beta.9.
- Published
- 11 Jan 2024
- Last modified
- 6 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-77
- Also known as
- GHSA-pxmr-q2x3-9x9mGO-2024-2464
- Sources
- NVDJSONOSV GHSA-pxmr-q2x3-9x9mJSONOSV GO-2024-2464JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nginxui | nginx_uicpe:2.3:a:nginxui:nginx_ui:*:*:*:*:*:*:*:* |
< 2.0.0 | 2.0.0 |
| NVD | nginxui | nginx_uicpe:2.3:a:nginxui:nginx_ui:2.0.0:beta1:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | nginxui | nginx_uicpe:2.3:a:nginxui:nginx_ui:2.0.0:beta2:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | nginxui | nginx_uicpe:2.3:a:nginxui:nginx_ui:2.0.0:beta3:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | nginxui | nginx_uicpe:2.3:a:nginxui:nginx_ui:2.0.0:beta4:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | nginxui | nginx_uicpe:2.3:a:nginxui:nginx_ui:2.0.0:beta4_patch:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | nginxui | nginx_uicpe:2.3:a:nginxui:nginx_ui:2.0.0:beta5:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | nginxui | nginx_uicpe:2.3:a:nginxui:nginx_ui:2.0.0:beta5_patch:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | nginxui | nginx_uicpe:2.3:a:nginxui:nginx_ui:2.0.0:beta6:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | nginxui | nginx_uicpe:2.3:a:nginxui:nginx_ui:2.0.0:beta6_patch:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | nginxui | nginx_uicpe:2.3:a:nginxui:nginx_ui:2.0.0:beta6_patch2:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | nginxui | nginx_uicpe:2.3:a:nginxui:nginx_ui:2.0.0:beta7:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | nginxui | nginx_uicpe:2.3:a:nginxui:nginx_ui:2.0.0:beta8:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | nginxui | nginx_uicpe:2.3:a:nginxui:nginx_ui:2.0.0:beta8_patch:*:*:*:*:*:* |
= 2.0.0 | |
| OSV | Go | github.com/0xJacky/Nginx-UI | < 1.9.10-0.20231219184941-827e76c46e63 | 1.9.10-0.20231219184941-827e76c46e63 |
References
- https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3 · Patch, WEB, FIX
- https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-pxmr-q2x3-9x9m · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-22197 · ADVISORY
- https://github.com/0xJacky/nginx-ui · PACKAGE
- https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/router.go#L13 · WEB
- https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/settings.go#L18 · WEB
- https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/router/middleware.go#L45 · WEB
- https://pkg.go.dev/vuln/GO-2024-2464 · WEB
- https://github.com/advisories/GHSA-pxmr-q2x3-9x9m · ADVISORY
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 11 Jan 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Jan 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 11 Jan 2024)