Ingress-nginx config injection enables arbitrary code execution
CVE-2026-4342 Published on March 19, 2026
ingress-nginx comment-based nginx configuration injection
A security issue was discovered in ingress-nginx where a combination of Ingress annotations can be used to inject configuration into nginx. This can lead to arbitrary code execution in the context of the ingress-nginx controller, and disclosure of Secrets accessible to the controller. (Note that in the default installation, the controller can access all Secrets cluster-wide.)
Vulnerability Analysis
CVE-2026-4342 is exploitable with network access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.
Weakness Type
Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Products Associated with CVE-2026-4342
Want to know whenever a new CVE is published for Kubernetes Ingress Nginx? stack.watch will email you.
Affected Versions
Kubernetes ingress-nginx:- Before 1.13.9 is affected.
- Before 1.14.5 is affected.
- Before 1.15.1 is affected.