{"id":"CVE-2026-84318","published":"2026-10-12T20:20:18Z","modified":"2026-10-13T14:59:04Z","title":"Nginx UI: MCP `nginx_config_add` Bypasses Directive Validation — Authenticated RCE","vendor":"0xJacky","product":"nginx-ui","tier":"tail","description":{"text":"Nginx UI is a web user interface for the Nginx web server. From 2.0.0-rc.6 until 2.4.1, the MCP tool nginx_config_add writes nginx configuration files to disk and triggers an nginx reload without calling config.ValidateConfigFile. The identical flow in the REST API (POST /api/configs) does call that function and correctly rejects dangerous directives. An authenticated attacker can exploit this gap to write config files containing any blocked directive (perl, js_import, load_module, user root, etc.), bypassing nginx-ui's entire security layer. On a server with the nginx Perl, njs, or Lua module loaded, this is post-authentication Remote Code Execution. This issue is fixed in version 2.4.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01177,"percentile":0.67429,"provenance":"source"},"cwes":[{"id":"CWE-693","name":"Protection Mechanism Failure"}],"references":[{"url":"https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-9jww-cxg5-rj9m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/0xJacky/nginx-ui/commit/23d1934099b05b2a01589b48129dc3d3159d91c2","tags":["x_refsource_MISC"]},{"url":"https://github.com/0xJacky/nginx-ui/releases/tag/v2.4.1","tags":["x_refsource_MISC"]}],"priority":{"score":19.6,"factors":[{"name":"EPSS percentile","points":13.49},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"0xjacky","affectedVersions":[{"vendor":"0xJacky","product":"nginx-ui","versions":[">= 2.0.0-rc.6, < 2.4.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-10-13T14:58:57.805122Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/0xJacky/Nginx-UI","vulnerableRanges":[">=1.9.10-0.20250506154222-1330888280a2, <1.9.10-0.20260703131214-23d1934099b0"],"patched":["1.9.10-0.20260703131214-23d1934099b0"],"from":["GHSA-9jww-cxg5-rj9m","GO-2026-6781"],"provenance":"source"}],"summary":{"text":"Nginx UI, a web user interface for the Nginx web server, has a flaw in its MCP tool nginx_config_add: it writes and reloads nginx configuration files without running the directive validation that the equivalent REST API path performs, so dangerous directives are not rejected. An attacker with network access and valid authentication, and no user interaction, can use this gap to write configuration containing blocked directives, which on a server with the nginx Perl, njs, or Lua module loaded leads to remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:31Z"},"euvd":{"id":"EUVD-2026-97908","exploited":false,"provenance":"source"}}