{"id":"CVE-2024-22198","published":"2024-01-11T19:38:27Z","modified":"2024-08-01T22:35:34Z","title":"Authenticated (user role) arbitrary command execution by modifying `start_cmd` setting (GHSL-2023-268)","vendor":"0xJacky","product":"nginx-ui","tier":"tail","description":{"text":"Nginx-UI is a web interface to manage Nginx configurations. It is vulnerable to arbitrary command execution by abusing the configuration settings. The `Home > 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04055,"percentile":0.9061,"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-8r25-68wm-jw35","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3","tags":["x_refsource_MISC"]},{"url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/settings.go#L18","tags":["x_refsource_MISC"]},{"url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/terminal/pty.go#L11","tags":["x_refsource_MISC"]},{"url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/internal/pty/pipeline.go#L29","tags":["x_refsource_MISC"]},{"url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/router/middleware.go#L45","tags":["x_refsource_MISC"]},{"url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/settings/server.go#L12","tags":["x_refsource_MISC"]}],"priority":{"score":28.1,"factors":[{"name":"EPSS percentile","points":18.12},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.97}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-07-24","earliestUrl":"https://github.com/xiw1ll/CVE-2024-22198_Checker","repos":[{"name":"xiw1ll/CVE-2024-22198_Checker","url":"https://github.com/xiw1ll/CVE-2024-22198_Checker","stars":0,"created":"2024-07-24"}]},"first":{"date":"2024-07-24","source":"PoC-in-GitHub","url":"https://github.com/xiw1ll/CVE-2024-22198_Checker"},"provenance":"source"},"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-8r25-68wm-jw35","GO-2024-2462"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-0301","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-0xjacky-nginx-ui-cve-2024-22197","children":[{"from":"CVE-2024-22198","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"}]}],"packageHistory":[{"cve":"CVE-2024-22197","published":"2024-01-11","fixed":"1.9.10-0.20231219184941-827e76c46e63","kev":false},{"cve":"CVE-2024-22198","published":"2024-01-11","fixed":"1.9.10-0.20231219184941-827e76c46e63","kev":false},{"cve":"CVE-2024-22196","published":"2024-01-11","fixed":"1.9.10-0.20231219195202-ec93ab05a3ec","kev":false,"link":{"from":"CVE-2024-22198","to":"CVE-2024-22196","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/0xJacky/Nginx-UI","fromFixed":"1.9.10-0.20231219184941-827e76c46e63","toFixed":"1.9.10-0.20231219195202-ec93ab05a3ec","daysApart":0}]}},{"cve":"CVE-2024-23828","published":"2024-01-29","fixed":"1.9.10-0.20240126104956-d70e37c8575e","kev":false},{"cve":"CVE-2024-23827","published":"2024-01-29","fixed":"1.9.10-0.20240128060047-8581bdd3c6f4","kev":false}],"package":"Go:github.com/0xJacky/Nginx-UI"}}