CVE-2026-4342 — Vulnerability in k8s.io/ingress-nginx — CVE Details
ingress-nginx comment-based nginx configuration injection
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.70%). Schedule for your next planned update.
Does your project use an affected k8s.io/ingress-nginx version?
Paste your go.sum to check it for CVE-2026-4342 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.)
Advisory Timeline
- First published March 20, 2026 (251 days ago).
- Last revised May 20, 2026 — 61 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get k8s.io/ingress-nginx@v0.0.0-20260319175635-5183b7d86137
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| k8s.io/ingress-nginx Go · Affected: All versions | 0.0.0-20260319175635-5183b7d86137 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-20Improper Input ValidationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-4342ADVISORY
- https://github.com/kubernetes/kubernetes/issues/137893WEB
- https://github.com/kubernetes/ingress-nginx/commit/5183b7d861377a9a2f6d2acaf44f8f6abd5cd0aaWEB
- https://github.com/kubernetes/ingress-nginxPACKAGE
- https://www.openwall.com/lists/oss-security/2026/03/19/9WEB
Frequently Asked Questions
- What is CVE-2026-4342?
- ingress-nginx comment-based nginx configuration injection. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2026-4342?
- CVE-2026-4342 affects k8s.io/ingress-nginx. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-4342 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 48.8% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2025-1974CRITICAL
ingress-nginx admission controller RCE escalation
- CVE-2025-1097HIGH
ngress-nginx controller - configuration injection via unsanitized auth-tls-match-cn annotation
- CVE-2026-1580HIGH
ingress-nginx's `nginx.ingress.kubernetes.io/auth-method` Ingress annotation can be used to inject configuration into nginx
- CVE-2026-108262HIGH
DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885
- CVE-2025-24514HIGH
ingress-nginx controller - configuration injection via unsanitized auth-url annotation
- CVE-2026-24512HIGH
ingress-nginx's `rules.http.paths.path` Ingress field can be used to inject configuration into nginx
- CVE-2026-130007HIGH
k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution
- CVE-2025-1098HIGH
ingress-nginx controller - configuration injection via unsanitized mirror annotations