Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
High 7.2CVE-2026-144962

Nginx UI: config directive denylist bypass enables code execution

Published 04/12/2026 · Updated 04/12/2026 · 0xJacky Nginx UI

Summary

Nginx UI from version 2.4.1 up to (but not including) 2.9.2 contains a flaw in configuration validation (internal/config/validation.go). The directive denylist can be bypassed by placing a blocked directive after a token containing '#;'. This is an interpretation conflict (CWE-436): the validator and nginx parse the same content differently.

The attack is network-based, low in complexity and requires no user interaction, but it needs high privileges, i.e. an authenticated user with configuration write access. Crafted content can be submitted through the config API, site and stream saves, or MCP tools.

An attacker can load njs or perl modules and gain code execution in the nginx worker process, with full impact on confidentiality, integrity and availability (CVSS 7.2, high severity). The vulnerability is not listed in the CISA KEV catalog.

Who is affected

Organizations using Nginx UI versions 2.4.1 up to (but not including) 2.9.2 to manage nginx servers.

What to do

  1. Upgrade Nginx UI to version 2.9.2 or later.
  2. Check which Nginx UI version you run and whether instances are reachable from the network.
  3. Restrict configuration write access, as well as API and MCP tool access, to necessary and trusted users only.
  4. Review existing nginx configurations for unexpected module-loading directives (njs, perl) and tokens containing '#;'.
  5. See the vendor advisory GHSA-xwxf-xc5j-p7hx for details.

Affected products and versions

0xJacky Nginx UI2.4.1 – < 2.9.2Fixed in: 2.9.2

CVSS vector, explained

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Attack vector
Network (from the internet)
Attack complexity
Low
Privileges required
Administrator
User interaction
Not required
Scope
Vulnerable component only
Confidentiality
High impact
Integrity
High impact
Availability
High impact

Weakness type (CWE)

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.