CVE-2021-25742 json
Ingress-nginx custom snippets allows retrieval of ingress-nginx serviceaccount token and secrets across all namespaces
published 2021-10-29 5 y ago modified 2026-06-17 4 mo ago also EUVD-2021-12628
- cvss
- 7.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 81%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- kubernetes ingress-nginx 0.49.1
- rke openSUSE Tumbleweed 1.3.3-1.1
opensuse advisories openSUSE-SU-2024:11726-1
- kubectl-ingress-nginx Arch Linux 1.0.4-1
arch linux advisories AVG-2490
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-25742 updated cvss 7.6
k8s.io/ingress-nginx: Custom snippets allows retrieval of ingress-nginx serviceaccount token and secrets across all namespaces
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/management-ingress-rhel8 Red Hat OpenShift Container Platform 3.11 atomic-openshift, atomic-openshift-pod, atomic-openshift-node, atomic-openshift-tests, atomic-openshift-master, atomic-openshift-clients, +7 more Red Hat OpenShift Container Platform 4 openshift, openshift-clients, openshift-kubelet, openshift-hyperkube, openshift-kube-apiserver, openshift-kube-scheduler, +2 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.07% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/kubernetes/ingress-nginx/issues/7837 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L |
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N |
| NVD | 2.0 | 5.5 | AV:N/AC:L/Au:S/C:P/I:P/A:N |
Affected products
- Kubernetes Kubernetes ingress-nginx
Classification
- Weakness
-
- CWE-20 Improper Input Validation
- Technology feeds
References
-
github.com
/kubernetes/ingress-nginx/issues/7837
exploit, issue-tracking, mitigation, third-party-advisory
-
groups.google.com
/g/kubernetes-security-announce/c/mT4JJxi9tQY
mailing-list, mitigation, third-party-advisory
-
security.netapp.com
/advisory/ntap-20211203-0001/
third-party-advisory
Sources
- CVE List CVE-2021-25742
- NVD CVE-2021-25742
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.