What’s Vulnerable › Vulnerabilities
CVE-2021-25742: Ingress-nginx custom snippets allows retrieval of ingress-nginx serviceaccount token and secrets across all namespaces
- Severity: high (CVSS 7.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.1% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-10-29 · updated 2026-06-17
- Weakness: CWE-20
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 products
- Kubernetes ingress-nginx: before 0.49.1; 1.0.0 — fixed in 0.49.1
- NetApp Trident: all versions
How to fix
Upgrade to a fixed version: Kubernetes ingress-nginx 0.49.1. Check the vendor advisory for mitigations.
References
- https://github.com/kubernetes/ingress-nginx/issues/7837
- https://groups.google.com/g/kubernetes-security-announce/c/mT4JJxi9tQY
- https://security.netapp.com/advisory/ntap-20211203-0001/
- https://github.com/kubernetes/ingress-nginx/issues/7837
- https://groups.google.com/g/kubernetes-security-announce/c/mT4JJxi9tQY
- https://security.netapp.com/advisory/ntap-20211203-0001/
Get alerted when CVE-2021-25742 or the next vulnerability affects your stack