{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-22198","id":"CVE-2024-22198","title":"Authenticated (user role) arbitrary command execution by modifying `start_cmd` setting (GHSL-2023-268)","description":"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 send","descriptionLong":"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.","published":"2024-01-11T19:38:27.296Z","updated":"2026-11-11T10:30:36.044556513Z","reserved":"2024-01-08T04:59:27.371Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/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.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L","rating":"high","source":"OSV"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/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-8r25-68wm-jw35"}],"cwes":["CWE-77"],"aliases":["GHSA-8r25-68wm-jw35","GO-2024-2462"],"references":[{"url":"https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-8r25-68wm-jw35","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/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/settings.go#L18","tags":["x_refsource_MISC","x_transferred","Product","web"]},{"url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/terminal/pty.go#L11","tags":["x_refsource_MISC","x_transferred","Product","web"]},{"url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/internal/pty/pipeline.go#L29","tags":["x_refsource_MISC","x_transferred","Product","web"]},{"url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/router/middleware.go#L45","tags":["x_refsource_MISC","x_transferred","Product","web"]},{"url":"https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/settings/server.go#L12","tags":["x_refsource_MISC","x_transferred","Product","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22198.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22198","tags":["advisory"]},{"url":"https://github.com/0xJacky/nginx-ui","tags":["package"]},{"url":"https://pkg.go.dev/vuln/GO-2024-2462","tags":["web"]},{"url":"https://github.com/advisories/GHSA-8r25-68wm-jw35","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.04055,"epssPercentile":0.90864,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-22198","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22198","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-22198","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-8r25-68wm-jw35","ok":true,"note":"GHSA-8r25-68wm-jw35"},{"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-22198","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["nginx"],"critical":[],"attention":null}