CVE-2021-25742: Ingress-nginx custom snippets allows retrieval of ingress-nginx serviceaccount token and secrets across all namespaces
Vulnerability summary
CVE-2021-25742 is a high (CVSS 7.6) Improper Input Validation vulnerability in kubernetes ingress-nginx. EPSS estimates a 2.11% chance of exploitation in the next 30 days, higher than 82.3% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Timeline
- 29-10-2021PublishedVulnerability first disclosed.
- 16-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 2 sources · 2 versions- NVDNIST7.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:NDiffers
EPSS trend
Probability
2.11%
Chance of exploitation in the next 30 days
Percentile
82%
Versus all other CVEs
30-day change
Increase +0.04 pp
From 2.07% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundIngress Nginx
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Kubernetes2 products
- ingress-nginx< 0.49.1 | 1.0.0
- kubernetes ingress-nginx≥ unspecified, ≤ 0.49.0 | ≥ unspecified, ≤ 1.0.0
Netapp1 product
- tridentna
Opensuse1 product
- rke&distro=openSUSE Tumbleweed< 1.3.3-1.1
3 vendors · 4 products
References
4 links- groups.google.com/g/kubernetes-security-announce/c/mT4JJxi9tQYX Refsource MISCMailing ListMitigationThird Party Advisory
- github.com/kubernetes/ingress-nginx/issues/7837X Refsource MISCExploitIssue TrackingMitigationThird Party Advisory