{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-22197","id":"CVE-2024-22197","title":"Authenticated (user role) remote command execution by modifying `nginx` settings (GHSL-2023-269)","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 setti","descriptionLong":"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":"2024-01-11T17:56:11.865Z","updated":"2026-11-11T10:31:10.700858642Z","reserved":"2024-01-08T04:59:27.371Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","rating":"high","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","rating":"high","source":"OSV"},{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","rating":"high","source":"GitHub"}],"rating":"high","products":["0xJacky nginx-ui"],"affectedProducts":[{"vendor":"0xJacky","product":"nginx-ui","defaultStatus":null,"versions":[{"version":"< 2.0.0.beta.9","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/0xJacky/Nginx-UI","purl":"pkg:golang/github.com/0xJacky/Nginx-UI","ranges":["<1.9.10-0.20231219184941-827e76c46e63"],"fixed":["1.9.10-0.20231219184941-827e76c46e63"],"advisory":"GHSA-pxmr-q2x3-9x9m"}],"cwes":["CWE-77"],"aliases":["GHSA-pxmr-q2x3-9x9m","GO-2024-2464"],"references":[{"url":"https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-pxmr-q2x3-9x9m","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22197.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22197","tags":["advisory"]},{"url":"https://github.com/0xJacky/nginx-ui","tags":["package"]},{"url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/router.go#L13","tags":["web"]},{"url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/settings.go#L18","tags":["web"]},{"url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/router/middleware.go#L45","tags":["web"]},{"url":"https://pkg.go.dev/vuln/GO-2024-2464","tags":["web"]},{"url":"https://github.com/advisories/GHSA-pxmr-q2x3-9x9m","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.01537,"epssPercentile":0.75403,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-22197","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22197","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-22197","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-pxmr-q2x3-9x9m","ok":true,"note":"GHSA-pxmr-q2x3-9x9m"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-22197","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["nginx"],"critical":[],"attention":null}