CVE-2024-22198 json
Authenticated (user role) arbitrary command execution by modifying `start_cmd` setting (GHSL-2023-268)
published 2024-01-11 2 y ago modified 2026-07-06 4 mo ago also GHSA-8r25-68wm-jw35 , GO-2024-2462 , EUVD-2024-0301
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.1%
- EPSS 4.1% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/0xJacky/Nginx-UI 1.9.10-0.20231219184941-827e76c46e63
- nginxui nginx_ui 2.0.0.beta.8
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
4.06% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-8r25-68wm-jw35 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/0xJacky/Nginx-UI | <1.9.10-0.20231219184941-827e76c46e63 |
1.9.10-0.20231219184941-827e76c46e63 |
Affected products
- 0xJacky nginx-ui
- nginxui nginx_ui
Classification
- Weakness
-
- CWE-77 Improper Neutralization of Special Elements used in a Command
References
-
github.com
/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3
web, patch
-
github.com
/0xJacky/nginx-ui/security/advisories/GHSA-8r25-68wm-jw35
web, exploit, vendor-advisory
-
github.com
/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/settings.go#L18
web, product
-
github.com
/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/terminal/pty.go#L11
web, product
-
github.com
/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/internal/pty/pipeline.go#L29
web, product
-
github.com
/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/router/middleware.go#L45
web, product
-
github.com
/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/settings/server.go#L12
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2024-22198
advisory
-
github.com
/0xJacky/nginx-ui
package
-
pkg.go.dev
/vuln/GO-2024-2462
web
-
github.com
/advisories/GHSA-8r25-68wm-jw35
advisory
Sources
- CVE List CVE-2024-22198
- GitHub Advisory GHSA-8r25-68wm-jw35
- NVD CVE-2024-22198
- OSV GO-2024-2462
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.