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

Check todaySensitive data exposure over the network by a logged-in user.
7.6HIGH

CVE-2021-25745

Key Information:

Vendor

Kubernetes

CVE ID
CVE ID:
CVE-2021-25745
Vendor
CVE Published:
6 May 2022
Fixed in
Fixed in:
1.2.0

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Partly: Works over the network, but needs a login
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Check today

Find out if you're affected. If you are, patch.

What to do

1Update to a fixed version
Kubernetes ingress-nginx below 1.2.0 is vulnerable
Install Kubernetes ingress-nginx 1.2.0 or later
Read the vendor advisory β†—
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Kubernetes ingress-nginx. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Check today"
  • Its CVSS severity is high (7.6).

What is CVE-2021-25745?

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.

References

Denial of Service in ingress-nginx

CVE-2026-116472
KubernetesIngress-nginxπŸ˜„2.7LOW

Path Traversal Vulnerability in Kubernetes CSI Driver for NFS

CVE-2026-3864
KubernetesCsi Driver For Nfs6.5MEDIUM

Code Injection in Ingress-nginx

CVE-2026-4342
KubernetesIngress-nginxπŸ”₯πŸ˜„8.8HIGH
View more Kubernetes vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

CVSS V3.1

Score:
7.6
Severity:
HIGH
Confidentiality:
High
Integrity:
Low
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Credit

Gafnit Amiga
.