# CVE-2024-22197: Authenticated (user role) remote command execution by modifying `nginx` settings (GHSL-2023-269)

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/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): 1.54%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-01-11T16:30:29.000Z
- Modified: 2026-07-06T19:15:08.130Z
- Also known as: GHSA-pxmr-q2x3-9x9m, GO-2024-2464
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:N/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-pxmr-q2x3-9x9m> (exploit, vendor-advisory, web)
- <https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3> (fix, patch, 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)

## Sources

- CVE List: [CVE-2024-22197](https://www.cve.org/CVERecord?id=CVE-2024-22197), CVE Terms of Use, modified 2025-06-17
- GitHub Advisory Database: [GHSA-pxmr-q2x3-9x9m](https://github.com/advisories/GHSA-pxmr-q2x3-9x9m), CC-BY-4.0, modified 2026-07-06
- Go Vulnerability Database: [GO-2024-2464](https://pkg.go.dev/vuln/GO-2024-2464), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2024-22197](https://nvd.nist.gov/vuln/detail/CVE-2024-22197), Public domain, modified 2026-06-17

---

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