# CVE-2024-22198: Authenticated (user role) arbitrary command execution by modifying `start_cmd` setting (GHSL-2023-268)

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.06%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-01-11T16:32:14.000Z
- Modified: 2026-07-06T19:15:08.425Z
- Also known as: GHSA-8r25-68wm-jw35, GO-2024-2462
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- 0xJacky nginx-ui: < 2.0.0.beta.9
- nginxui nginx_ui: before 2.0.0.beta.8; before 2.0.0; 2.0.0 (not affected: 2.0.0)
- github.com/0xJacky/Nginx-UI (Go): before 1.9.10-0.20231219184941-827e76c46e63

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-8r25-68wm-jw35> (exploit, vendor-advisory, web)
- <https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3> (fix, patch, web)
- <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://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)

## Sources

- CVE List: [CVE-2024-22198](https://www.cve.org/CVERecord?id=CVE-2024-22198), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-8r25-68wm-jw35](https://github.com/advisories/GHSA-8r25-68wm-jw35), CC-BY-4.0, modified 2026-07-06
- Go Vulnerability Database: [GO-2024-2462](https://pkg.go.dev/vuln/GO-2024-2462), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2024-22198](https://nvd.nist.gov/vuln/detail/CVE-2024-22198), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-22198 · Whole record: https://cve.day/CVE-2024-22198.json · Rebuilt by cve.day 2026-11-25T22:58:36.040Z
