CVE-2026-4342: 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.)
Published Mar 20, 2026
Affected packages
k8s.io/ingress-nginx
- Ecosystem
- Go
- Affected
- < 0.0.0-20260319175635-5183b7d86137
- Fixed in
- 0.0.0-20260319175635-5183b7d86137
- Check
go list -m k8s.io/ingress-nginx
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.)
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-1580
ingress-nginx's `nginx.ingress.kubernetes.io/auth-method` Ingress annotation can be used to inject configuration into nginx
high8.8Feb 4, 2026CVE-2026-24512
ingress-nginx's `rules.http.paths.path` Ingress field can be used to inject configuration into nginx
high8.8Feb 4, 2026CVE-2026-24513
ingress-nginx has Improper Check for Unusual or Exceptional Conditions
low3.1Feb 4, 2026CVE-2026-24514
ingress-nginx vulnerable to Allocation of Resources Without Limits or Throttling
medium6.5Feb 4, 2026CVE-2025-1097
ngress-nginx controller - configuration injection via unsanitized auth-tls-match-cn annotation
high8.8Mar 25, 2025CVE-2025-1098
ingress-nginx controller - configuration injection via unsanitized mirror annotations
high8.8Mar 25, 2025
