{"id":"CVE-2021-25745","published":"2022-05-06T00:50:14Z","modified":"2024-09-16T18:24:11Z","title":"Ingress-nginx path can be pointed to service account token file","vendor":"Kubernetes","product":"Kubernetes ingress-nginx","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01182,"percentile":0.68514,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://groups.google.com/g/kubernetes-security-announce/c/7vQrpDZeBlc","tags":["x_refsource_MISC"]},{"url":"https://github.com/kubernetes/ingress-nginx/issues/8502","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20220609-0006/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":19.0,"factors":[{"name":"EPSS percentile","points":13.7},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"kubernetes","affectedVersions":[{"vendor":"Kubernetes","product":"Kubernetes ingress-nginx","versions":[">= unspecified, < 1.2.0"]}],"affected":[{"ecosystem":"Go","package":"k8s.io/ingress-nginx","vulnerableRanges":["<1.2.0"],"patched":["1.2.0"],"from":["GHSA-pvmg-xgmx-9mxh"],"provenance":"source"}],"summary":{"text":"Kubernetes ingress-nginx, the ingress controller component, contains an input validation flaw in how it handles the spec.rules[].http.paths[].path field of Ingress objects in the networking.k8s.io or extensions API groups. An attacker who can create or update Ingress objects, which requires only low privileges, can use that path field to obtain the ingress-nginx controller's credentials, which in the default configuration grant access to all secrets in the cluster.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:18:01Z"},"euvd":{"id":"EUVD-2022-4829","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-kubernetes-ingress-nginx-cve-2021-25745","packageHistory":[{"cve":"CVE-2026-4342","published":"2026-03-19","fixed":"0.0.0-20260319175635-5183b7d86137","kev":false},{"cve":"CVE-2020-8553","published":"2020-07-29","fixed":"0.28.0","kev":false},{"cve":"CVE-2021-25745","published":"2022-05-06","fixed":"1.2.0","kev":false},{"cve":"CVE-2021-25748","published":"2023-05-24","fixed":"1.2.1","kev":false,"link":{"from":"CVE-2021-25745","to":"CVE-2021-25748","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:k8s.io/ingress-nginx","fromFixed":"1.2.0","toFixed":"1.2.1","daysApart":383},{"kind":"similar","provenance":"machine","score":0.9,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2018-1002104","published":"2020-01-14","fixed":"1.5","kev":false},{"cve":"CVE-2022-4886","published":"2023-10-25","fixed":"1.8.0","kev":false}],"package":"Go:k8s.io/ingress-nginx"}}