{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-25745","id":"CVE-2021-25745","title":"Ingress-nginx path can be pointed to service account token file","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.","descriptionLong":"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.","published":"2022-05-06T00:50:14.042Z","updated":"2026-10-20T10:54:33.756156360Z","reserved":"2021-01-21T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"kubernetes","metric":{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","rating":"high","source":"kubernetes"},"metrics":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","rating":"high","source":"kubernetes"},{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","rating":"high","source":"liggitt.net"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":5.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":["Kubernetes ingress-nginx"],"affectedProducts":[{"vendor":"Kubernetes","product":"Kubernetes ingress-nginx","defaultStatus":null,"versions":[{"lessThan":"1.2.0","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"k8s.io/ingress-nginx","purl":"pkg:golang/k8s.io/ingress-nginx","ranges":["<1.2.0"],"fixed":["1.2.0"],"advisory":"GHSA-pvmg-xgmx-9mxh"}],"cwes":["CWE-20"],"aliases":["GHSA-pvmg-xgmx-9mxh"],"references":[{"url":"https://groups.google.com/g/kubernetes-security-announce/c/7vQrpDZeBlc","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Mailing List","Mitigation","Third Party Advisory","report","web"]},{"url":"https://github.com/kubernetes/ingress-nginx/issues/8502","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Mitigation","Third Party Advisory","report","web"]},{"url":"https://security.netapp.com/advisory/ntap-20220609-0006/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25745","tags":["advisory"]},{"url":"https://github.com/kubernetes/ingress-nginx","tags":["package"]},{"url":"https://security.netapp.com/advisory/ntap-20220609-0006","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01182,"epssPercentile":0.68415,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-25745","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25745","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-25745","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-pvmg-xgmx-9mxh","ok":true,"note":"GHSA-pvmg-xgmx-9mxh"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-25745","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["nginx","kubernetes"],"critical":[],"attention":null}