CVE-2021-25745

Ingress-nginx path can be pointed to service account token file

HIGH
8.1
CVSS Score
Published: May 6, 2022 at 12:50 AM UTC
Updated: June 17, 2026 at 03:42 AM UTC
1 product affected across 1 vendorIngress nginx

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
HIGH8.1
Exploit prediction
EPSS 1%

Description

A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use the spec.rules[].http.paths[].path field of an Ingress object (in the networking.k8s.io or extensions API group) to obtain the credentials of the ingress-nginx controller. In the default configuration, that credential has access to all secrets in the cluster.

Affected

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

v < 1.2.0
Affected range stops below 1.2.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

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

References (3)

x_refsource_MISCIssue TrackingMitigationThird Party Advisory
https://github.com/kubernetes/ingress-nginx/issues/8502
x_refsource_MISCIssue TrackingMailing ListMitigationThird Party Advisory
https://groups.google.com/g/kubernetes-security-announce/c/7vQrpDZeBlc

CVSS

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

Quick Info

StatusMODIFIED
CWE
CWE-20

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