{"id":"CVE-2021-25745","aliases":["CVE-2021-25745","GHSA-pvmg-xgmx-9mxh"],"related":[],"kind":"vulnerability","state":"published","title":"Ingress-nginx path can be pointed to service account token file","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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","source":"nvd"}],"published":"2022-05-06T00:50:14.042Z","modified":"2026-08-07T08:12:06.631Z","severity":{"scorer":"kubernetes","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"kubernetes","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","score":7.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.2.0","status":"affected"}],"vendor":"Kubernetes","product":"Kubernetes ingress-nginx","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.2.0"}],"ecosystem":"Go","package":"k8s.io/ingress-nginx","purl":"pkg:golang/k8s.io/ingress-nginx","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.2.0"}],"vendor":"kubernetes","product":"ingress-nginx","cpe":"cpe:2.3:a:kubernetes:ingress-nginx:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://groups.google.com/g/kubernetes-security-announce/c/7vQrpDZeBlc","tags":["issue-tracking","mailing-list","mitigation","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/kubernetes/ingress-nginx/issues/8502","tags":["issue-tracking","mitigation","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20220609-0006/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25745","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/kubernetes/ingress-nginx","tags":["package"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20220609-0006","tags":["web"],"sources":["ghsa"]}],"credits":["Gafnit Amiga"],"assigner":"kubernetes","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-25745","url":"https://www.cve.org/CVERecord?id=CVE-2021-25745","licence":"CVE Terms of Use","modified":"2024-09-16T18:24:11.711Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pvmg-xgmx-9mxh","url":"https://github.com/advisories/GHSA-pvmg-xgmx-9mxh","licence":"CC-BY-4.0","modified":"2026-08-07T08:12:06.631Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-25745","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25745","licence":"Public domain","modified":"2026-06-17T03:42:23.500Z"}],"updatedAt":"2026-11-25T22:58:07.454Z","epss":{"score":0.01182,"percentile":0.68615,"date":"2026-12-01T12:00:22.000Z"}}