CVE-2021-25745
JSON

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 packageVersionsReported by
Kubernetes Kubernetes ingress-nginxfrom unspecified before 1.2.0CVE List
k8s.io/ingress-nginx (Go)before 1.2.0GitHub Advisory Database
kubernetes ingress-nginxbefore 1.2.0NVD

All scores

kubernetes7.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
NVD5.5medium CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2021-25745 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-pvmg-xgmx-9mxh changed 2026-08-07CC-BY-4.0
NVDCVE-2021-25745 changed 2026-06-17Public domain