CVE-2026-66362 in NGINX Gateway Fabricinfo

Summary

by MITRE • 09/02/2026

Description: When NGINX Plus is configured as the data plane for NGINX Gateway Fabric, an injection vulnerability exists in the NGINX configuration generator component of NGINX Gateway Fabric. User-supplied string values from the Authentication Filter Custom Resource Definition clientID or cookieName fields, or in the clientSecret field of a Secret referenced by an Authentication Filter, are rendered directly into NGINX configuration templates without sanitization or escaping.

Impact: An authenticated attacker with permission to create or modify these resources may craft values that inject arbitrary NGINX configuration directives. This is a control plane issue; there is no data plane exposure.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 09/02/2026

The vulnerability described constitutes an injection flaw within the NGINX Gateway Fabric component, specifically affecting its interaction with NGINX Plus when configured as the data plane. The core technical deficiency lies in the configuration generator module, which fails to properly sanitize or escape user-supplied input before rendering it into NGINX configuration templates. Specifically, values provided by clients through the Authentication Filter Custom Resource Definition are processed without adequate validation. This includes string inputs from fields such as clientID and cookieName, as well as sensitive data retrieved from Secrets referenced by an Authentication Filter, particularly the clientSecret field. By directly embedding these unsanitized strings into configuration files, the system allows for the injection of arbitrary NGINX directives, effectively compromising the integrity of the control plane's configuration management process.

From a technical perspective, this issue aligns with CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component and CWE-95 improper neutralization of user input affecting command execution or configuration parsing depending on how the injected directives are interpreted by NGINX Plus. The attack vector requires an authenticated attacker who possesses specific permissions to create or modify Authentication Filter resources within the Kubernetes cluster. This is not a remote code execution vulnerability in the traditional sense, nor does it expose data plane traffic directly to external attackers. Instead, it represents a privilege escalation and configuration manipulation risk where a lower-privileged user can influence the behavior of the high-privilege NGINX Plus instance by injecting malicious configuration snippets that alter routing rules, authentication mechanisms, or other operational parameters controlled by those directives.

The operational impact is significant because it allows an attacker to potentially bypass security controls implemented via the Gateway Fabric. For example, injected directives could disable authentication checks for specific routes, redirect traffic to unauthorized backends, or expose internal services that were previously protected. Since NGINX Plus acts as the data plane based on configurations generated by this component, any modification to these templates directly impacts how incoming requests are processed and routed. Although there is no direct exposure of the data plane to external unauthenticated attackers via this specific vector, the compromise of configuration integrity undermines the security posture of the entire gateway infrastructure. An attacker could effectively create backdoors or alter access control policies without needing to exploit network-level vulnerabilities in NGINX Plus itself.

Mitigation strategies should focus on strict input validation and escaping mechanisms within the NGINX Gateway Fabric codebase. Developers must ensure that all user-supplied strings, including those from Custom Resource Definitions and Kubernetes Secrets, are validated against a whitelist of allowed characters or properly escaped before being rendered into configuration templates. Implementing robust sanitization routines will prevent special characters used for injection from being interpreted as valid NGINX directives. Additionally, principle of least privilege should be enforced by restricting permissions to create or modify Authentication Filter resources only to trusted administrators who require such access. Regular auditing of these resource modifications and monitoring for unusual patterns in configuration generation can also help detect potential exploitation attempts early.

Responsible

F5

Reservation

07/30/2026

Disclosure

09/02/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!