CVE-2021-25742
7.6high
Ingress-nginx custom snippets allows retrieval of ingress-nginx serviceaccount token and secrets across all namespaces
- Severity
- 7.6high CVSS:3.1 by kubernetes
- Exploit likelihood
- 2.11% (higher than 82% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- kubernetes
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
| Product or package | Versions | Reported by |
|---|---|---|
| Kubernetes Kubernetes ingress-nginx | from unspecified up to 0.49.0, from next of 0.49.0 before unspecified, from unspecified up to 1.0.0, from next of 1.0.0 before unspecified | CVE List |
| kubernetes ingress-nginx | before 0.49.1, 1.0.0 | NVD |
| netapp trident | Not specified | NVD |
All scores
| kubernetes | 7.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L |
| NVD | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N |
| NVD | 5.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:N |
Classification
What each source says
CVE List
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.
NVD (es)
Se ha detectado un problema de seguridad en ingress-nginx donde un usuario que puede crear o actualizar objetos de entrada puede usar la función de fragmentos personalizados para obtener todos los secretos del clúster
References
| https://groups.google.com/g/kubernetes-security-announce/c/mT4JJxi9tQY | mailing-list, mitigation, third-party-advisory | |
| https://github.com/kubernetes/ingress-nginx/issues/7837 | exploit, issue-tracking, mitigation, third-party-advisory | |
| https://security.netapp.com/advisory/ntap-20211203-0001/ | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-25742 changed 2024-09-16 | CVE Terms of Use |
| NVD | CVE-2021-25742 changed 2026-06-17 | Public domain |