7.6high
Ingress-nginx directive injection via annotations
- Severity
- 7.6high CVSS:3.1 by kubernetes
- Exploit likelihood
- 1.44% (higher than 73% 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 .metadata.annotations in an Ingress object (in the networking.k8s.io or extensions API group) to obtain the credentials of the ingress-nginx controller. In the default configuration, that credential has access to all secrets in the cluster.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Kubernetes Kubernetes ingress-nginx | from unspecified before 1.2.0 | CVE List |
| kubernetes ingress-nginx | before 1.2.0 | 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 .metadata.annotations in an Ingress object (in the networking.k8s.io or extensions API group) to obtain the credentials of the ingress-nginx controller. In the default configuration, that credential has access to all secrets in the cluster.
NVD (es)
Se ha detectado un problema de seguridad en ingress-nginx en el que un usuario que puede crear o actualizar objetos ingress puede usar .metadata.annotations en un objeto Ingress (en el grupo networking.k8s.io o extensions API) para obtener las credenciales del controlador ingress-nginx. En la configuración por defecto, esa credencial presenta acceso a todos los secretos del clúster
References
| https://groups.google.com/g/kubernetes-security-announce/c/hv2-SfdqcfQ | issue-tracking, mitigation, third-party-advisory | |
| https://github.com/kubernetes/ingress-nginx/issues/8503 | issue-tracking, mitigation, third-party-advisory | |
| https://security.netapp.com/advisory/ntap-20220609-0006/ | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-25746 changed 2024-09-17 | CVE Terms of Use |
| NVD | CVE-2021-25746 changed 2026-06-17 | Public domain |