# CVE-2021-25745: Ingress-nginx path can be pointed to service account token file

- Severity: High 7.6 (CVSS:3.1, scored by kubernetes) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.18%, higher than 68% of CVEs (2026-12-01)
- Published: 2022-05-06T00:50:14.042Z
- Modified: 2026-08-07T08:12:06.631Z
- Also known as: GHSA-pvmg-xgmx-9mxh
- Weaknesses: CWE-20
- Assigned by: kubernetes

## 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.

(As written by CVE List.)

## Affected

- Kubernetes Kubernetes ingress-nginx: from unspecified before 1.2.0
- k8s.io/ingress-nginx (Go): before 1.2.0
- kubernetes ingress-nginx: before 1.2.0

## Every score

- kubernetes: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 5.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:N`

## 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

- CVE List: [CVE-2021-25745](https://www.cve.org/CVERecord?id=CVE-2021-25745), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-pvmg-xgmx-9mxh](https://github.com/advisories/GHSA-pvmg-xgmx-9mxh), CC-BY-4.0, modified 2026-08-07
- NVD: [CVE-2021-25745](https://nvd.nist.gov/vuln/detail/CVE-2021-25745), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-25745 · Whole record: https://cve.day/CVE-2021-25745.json · Rebuilt by cve.day 2026-11-25T22:58:07.454Z
