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

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

CVE-2021-25742

Key Information:

Vendor

Kubernetes

CVE ID
CVE ID:
CVE-2021-25742
Vendor
CVE Published:
29 October 2021

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

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

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-25742?

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 Version(s)

Kubernetes ingress-nginx <= 0.49.0

Kubernetes ingress-nginx <= 1.0.0

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

Mitch Hulscher
.