7.6high
Ingress-nginx path can be pointed to service account token file
- Severity
- 7.6high CVSS:3.1 by kubernetes
- Exploit likelihood
- 1.18% (higher than 68% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- kubernetes
- Also known as
- GHSA-pvmg-xgmx-9mxh
Description
A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use the spec.rules[].http.paths[].path field of 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 |
| k8s.io/ingress-nginx (Go) | before 1.2.0 | GitHub Advisory Database |
| 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 |
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/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 spec.rules[].http.paths[].path field of 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 el campo spec.rules[].http.paths[].path de 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/7vQrpDZeBlc | issue-tracking, mailing-list, mitigation, third-party-advisory, web | |
| https://github.com/kubernetes/ingress-nginx/issues/8502 | issue-tracking, mitigation, third-party-advisory, web | |
| https://security.netapp.com/advisory/ntap-20220609-0006/ | third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-25745 | advisory | |
| https://github.com/kubernetes/ingress-nginx | package | |
| https://security.netapp.com/advisory/ntap-20220609-0006 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-25745 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pvmg-xgmx-9mxh changed 2026-08-07 | CC-BY-4.0 |
| NVD | CVE-2021-25745 changed 2026-06-17 | Public domain |