CVE-2021-25742

Ingress-nginx custom snippets allows retrieval of ingress-nginx serviceaccount token and secrets across all namespaces

HIGH
7.1
CVSS Score
Published: October 29, 2021 at 04:05 AM UTC
Updated: June 17, 2026 at 03:42 AM UTC
2 products affected across 2 vendorsIngress nginxTrident

Using Kubernetes ingress-nginx by Kubernetes?

Get instant alerts when new vulnerabilities affect Kubernetes ingress-nginx - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 2%

Description

A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use the custom snippets feature to obtain all secrets in the cluster.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≤ 0.49.0v ≤ 1.0.01.0.0
Affected range stops below 0.49.1, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in next of 0.49.0 (unknown)
Vendor states this is fixed in next of 1.0.0 (unknown)
All versions

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

x_refsource_MISCExploitIssue TrackingMitigationThird Party Advisory
https://github.com/kubernetes/ingress-nginx/issues/7837
x_refsource_MISCMailing ListMitigationThird Party Advisory
https://groups.google.com/g/kubernetes-security-announce/c/mT4JJxi9tQY

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-20NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card