NGINX Gateway Fabric
CVE-2026-50107
HIGH
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Requires Kubernetes RBAC over NginxProxy CRDs (PR:H), network-reachable API (AV:N/AC:L), and control-plane-to-data-plane crossing justifies S:C with high C/I and low availability impact.
Primary rating from Vendor (f5).
CVSS VectorVendor: f5
Lifecycle Timeline
5DescriptionCVE.org
When NGINX Plus or NGINX Open Source 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 NginxProxy Custom Resource Definition (CRD) access log format setting are rendered directly into NGINX configuration templates without sanitization or escaping. An authenticated attacker with permission to create or modify these CRDs may craft values that inject arbitrary NGINX configuration directives. This is a control plane issue; there is no data plane exposure from the vulnerability trigger itself.
Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.
Articles & Coverage 1
AnalysisAI
Configuration injection in F5 NGINX Gateway Fabric allows an authenticated Kubernetes user with permission to create or modify NginxProxy Custom Resource Definitions to inject arbitrary NGINX directives into generated configuration files via the unsanitized access log format setting. The flaw resides in the control plane configuration generator and affects deployments using NGINX Plus or NGINX Open Source as the data plane. There is no public exploit identified at time of analysis, and CVSS 4.0 rates the impact at 8.6 (High) driven by high confidentiality and integrity loss on the vulnerable system.
Technical ContextAI
NGINX Gateway Fabric is F5's Kubernetes Gateway API implementation that translates Gateway, HTTPRoute, and proxy custom resources into NGINX configuration consumed by data plane pods. The NginxProxy CRD exposes operator-controlled tuning knobs including the access log format, whose string values are rendered directly into NGINX configuration templates by the control plane's config generator. Because the templating step omits escaping and sanitization, this is a textbook CWE-74 (Improper Neutralization of Special Elements in Output) injection - the attacker controls a template variable that becomes structurally meaningful NGINX directives once rendered. The affected component is the control plane only (cpe:2.3:a:f5:nginx_gateway_fabric); F5 explicitly notes the data plane itself is not directly exposed by the trigger, though the injected directives are ultimately loaded by data plane NGINX instances.
RemediationAI
Patch availability per vendor advisory: upgrade NGINX Gateway Fabric to the fixed release identified in F5 advisory K000161785 (https://my.f5.com/manage/s/article/K000161785); exact fix versions are not enumerated in the input data and must be taken from the advisory. Until patched, restrict Kubernetes RBAC so that only trusted cluster operators can create or update NginxProxy CRDs (verbs create/update/patch on the nginxproxies resource in the gateway.nginx.org API group), since the vulnerability is gated entirely by that permission - note this trade-off limits self-service tuning by namespace owners. Additionally consider admission-control policies (Kyverno, OPA Gatekeeper, or ValidatingAdmissionPolicy) that reject NginxProxy resources whose access log format contains newline, semicolon, or NGINX directive keywords, accepting that overly strict regex may also block legitimate format strings. Audit existing NginxProxy CRDs for suspicious access log format values before applying upgrades.
More in Nginx Gateway Fabric
View allConfiguration injection in F5 NGINX Gateway Fabric lets an authenticated Kubernetes user who can create or modify NginxP
Denial-of-service in F5 NGINX Gateway Fabric allows an authenticated Kubernetes user with rights to create or modify GRP
NGINX proxy configurations forwarding traffic to upstream TLS servers can be exploited by network-positioned attackers t
Same technique Code Injection
View allShare
External POC / Exploit Code
Leaving vuln.today