{"id":"CVE-2024-22197","summary":"Authenticated (user role) remote command execution by modifying `nginx` settings (GHSL-2023-269)","details":"Nginx-ui is online statistics for Server Indicators\u200b\u200b Monitor CPU usage, memory usage, load average, and disk usage in real-time. The `Home \u003e 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.","aliases":["GHSA-pxmr-q2x3-9x9m","GO-2024-2464"],"modified":"2026-04-16T04:12:26.035068Z","published":"2024-01-11T17:56:11.865Z","database_specific":{"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22197.json","cwe_ids":["CWE-77"]},"references":[{"type":"ADVISORY","url":"https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-pxmr-q2x3-9x9m"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22197.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22197"},{"type":"FIX","url":"https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/0xjacky/nginx-ui","events":[{"introduced":"0"},{"fixed":"38c9727e154e3bffc652bfed8689ad7e2950848b"}]}],"versions":["v1.1.0","v1.2.0","v1.2.0-alpha.3","v1.2.0-alpha.4","v1.2.0-rc.1","v1.2.0-rc.2","v1.2.0-rc.3","v1.2.1","v1.2.2","v1.3.0","v1.3.0-rc1","v1.3.1","v1.3.1-fix","v1.3.2","v1.3.3-rc1","v1.4.0","v1.4.0-rc1","v1.4.1","v1.4.2","v1.5.0","v1.5.0-beta1","v1.5.0-beta2","v1.5.0-beta3","v1.5.0-beta4","v1.5.0-beta4-fix","v1.5.0-beta5","v1.5.0-beta6","v1.5.0-beta7","v1.5.0-beta8","v1.5.0-beta9","v1.5.1","v1.5.2","v1.6.0","v1.6.0-fix","v1.6.1","v1.6.2","v1.6.3","v1.6.5","v1.6.6","v1.6.7","v1.6.8","v1.7.0","v1.7.0-patch","v1.7.1","v1.7.2","v1.7.3","v1.7.4","v1.7.5","v1.7.6","v1.7.7","v1.7.8","v1.7.9","v1.8.0","v1.8.1","v1.8.2","v1.8.3","v1.8.4","v1.8.4-patch","v1.9.9","v1.9.9-1","v1.9.9-2","v1.9.9-3","v1.9.9-4","v2.0.0-beta.1","v2.0.0-beta.2","v2.0.0-beta.3","v2.0.0-beta.4","v2.0.0-beta.4-patch","v2.0.0-beta.5","v2.0.0-beta.5-patch","v2.0.0-beta.6","v2.0.0-beta.6-patch","v2.0.0-beta.6-patch.2","v2.0.0-beta.7","v2.0.0-beta.8","v2.0.0-beta.8-patch"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-22197.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L"}]}