CVE-2024-22198
HIGH 8.8CVSS 3.1Authenticated (user role) arbitrary command execution by modifying `start_cmd` setting (GHSL-2023-268)
Nginx-UI is a web interface to manage Nginx configurations. It is vulnerable to arbitrary command execution by abusing the configuration settings. The Home > Preference page exposes a list of system settings such as Run Mode, Jwt Secret, Node Secret and Terminal Start Command. While the UI doesn't allow users to modify the Terminal Start Command setting, 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 vulnerability 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-8r25-68wm-jw35GO-2024-2462
- Sources
- NVDJSONOSV GHSA-8r25-68wm-jw35JSONOSV GO-2024-2462JSON
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.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/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/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/settings.go#L18 · Product, WEB
- https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/terminal/pty.go#L11 · Product, WEB
- https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/internal/pty/pipeline.go#L29 · Product, WEB
- https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/router/middleware.go#L45 · Product, WEB
- https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/settings/server.go#L12 · Product, WEB
- https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3 · Patch, WEB, FIX
- https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-8r25-68wm-jw35 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-22198 · ADVISORY
- https://github.com/0xJacky/nginx-ui · PACKAGE
- https://pkg.go.dev/vuln/GO-2024-2462 · WEB
- https://github.com/advisories/GHSA-8r25-68wm-jw35 · 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 30 Jan 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 11 Jan 2024)