{"id":"CVE-2024-22198","summary":"Authenticated (user role) arbitrary command execution by modifying `start_cmd` setting (GHSL-2023-268)","details":"Nginx-UI is a web interface to manage Nginx configurations. It is vulnerable to arbitrary command execution by abusing the configuration settings. The `Home \u003e 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.","aliases":["GHSA-8r25-68wm-jw35","GO-2024-2462"],"modified":"2026-11-11T10:34:17.716826780Z","published":"2024-01-11T19:38:27.296Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22198.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-77"]},"references":[{"type":"WEB","url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/settings.go#L18"},{"type":"WEB","url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/terminal/pty.go#L11"},{"type":"WEB","url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/internal/pty/pipeline.go#L29"},{"type":"WEB","url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/router/middleware.go#L45"},{"type":"WEB","url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/settings/server.go#L12"},{"type":"ADVISORY","url":"https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-8r25-68wm-jw35"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22198.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22198"},{"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":"daee3ac7ade1162805b3af07807e2f4dc2affaf5"},{"fixed":"827e76c46e63c52114a62a899f61313039c754e3"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"2.0.0"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:nginxui:nginx_ui:*:*:*:*:*:*:*:*"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"827e76c46e63c52114a62a899f61313039c754e3"}]}]}}],"versions":["v2.0.0-beta.8-patch","v2.0.0-beta.8","v2.0.0-beta.7","v2.0.0-beta.6-patch.2","v2.0.0-beta.6-patch","v2.0.0-beta.6","v2.0.0-beta.5-patch","v2.0.0-beta.5","v2.0.0-beta.4-patch","v2.0.0-beta.4","v2.0.0-beta.3","v2.0.0-beta.2","v2.0.0-beta.1","v1.9.9-4","v1.9.9-3","v1.9.9-2","v1.9.9","v1.9.9-1","v1.8.4-patch","v1.8.4","v1.8.3","v1.8.2","v1.8.1","v1.8.0","v1.7.9","v1.7.8","v1.7.7","v1.7.6","v1.7.5","v1.7.4","v1.7.3","v1.7.2","v1.7.1","v1.7.0-patch","v1.7.0","v1.6.8","v1.6.7","v1.6.6","v1.6.5","v1.6.3","v1.6.2","v1.6.1","v1.6.0-fix","v1.6.0","v1.5.2","v1.5.1","v1.5.0","v1.5.0-beta9","v1.5.0-beta8","v1.5.0-beta7","v1.5.0-beta6","v1.5.0-beta5","v1.5.0-beta4-fix","v1.5.0-beta4","v1.5.0-beta3","v1.5.0-beta2","v1.5.0-beta1","v1.4.2","v1.4.1","v1.4.0","v1.4.0-rc1","v1.3.3-rc1","v1.3.2","v1.3.1-fix","v1.3.1","v1.3.0","v1.3.0-rc1","v1.2.2","v1.2.1","v1.2.0-rc.3","v1.2.0","v1.2.0-rc.2","v1.2.0-rc.1","v1.2.0-alpha.4","v1.2.0-alpha.3","v1.1.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-22198.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L"}]}