{"id":"CVE-2024-22197","published":"2024-01-11T17:56:11Z","modified":"2025-06-17T21:09:16Z","title":"Authenticated (user role) remote command execution by modifying `nginx` settings (GHSL-2023-269)","vendor":"0xJacky","product":"nginx-ui","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01537,"percentile":0.74766,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-pxmr-q2x3-9x9m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3","tags":["x_refsource_MISC"]}],"priority":{"score":20.3,"factors":[{"name":"EPSS percentile","points":14.95},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"0xjacky","affectedVersions":[{"vendor":"0xJacky","product":"nginx-ui","versions":["< 2.0.0.beta.9"]}],"affected":[{"ecosystem":"Go","package":"github.com/0xJacky/Nginx-UI","vulnerableRanges":["<1.9.10-0.20231219184941-827e76c46e63"],"patched":["1.9.10-0.20231219184941-827e76c46e63"],"from":["GHSA-pxmr-q2x3-9x9m","GO-2024-2464"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-0396","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-0xjacky-nginx-ui-cve-2024-22197","children":[{"from":"CVE-2024-22197","to":"CVE-2024-23828","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This vulnerability exists due to an incomplete fix for CVE-2024-22197 and CVE-2024-22198.","from":"CVE.org","in":"CVE-2024-23828"}]}]}}