Skip to main content

CVE-2026-4342 — Vulnerability in k8s.io/ingress-nginx — CVE Details

HIGH

ingress-nginx comment-based nginx configuration injection

Published March 20, 2026Updated May 20, 2026Source: OSV

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.

Check my go.sum

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
Update k8s.io/ingress-nginx to 0.0.0-20260319175635-5183b7d86137 or later
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).

PackageFixed In
k8s.io/ingress-nginx Go · Affected: All versions0.0.0-20260319175635-5183b7d86137

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-20
    Improper Input ValidationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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

CVSS Score
8.8

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.70%
EPSS percentile: 48.8

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

GHSA-f53h-mxv9-cp98
GO-2026-4796

Related CVEs

  • CVE-2025-1974
    CRITICAL

    ingress-nginx admission controller RCE escalation

  • CVE-2025-1097
    HIGH

    ngress-nginx controller - configuration injection via unsanitized auth-tls-match-cn annotation

  • CVE-2026-1580
    HIGH

    ingress-nginx's `nginx.ingress.kubernetes.io/auth-method` Ingress annotation can be used to inject configuration into nginx

  • CVE-2026-108262
    HIGH

    DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885

  • CVE-2025-24514
    HIGH

    ingress-nginx controller - configuration injection via unsanitized auth-url annotation

  • CVE-2026-24512
    HIGH

    ingress-nginx's `rules.http.paths.path` Ingress field can be used to inject configuration into nginx

  • CVE-2026-130007
    HIGH

    k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution

  • CVE-2025-1098
    HIGH

    ingress-nginx controller - configuration injection via unsanitized mirror annotations

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum