Home / Kubernetes / Kubernetes ingress-nginx / CVE-2021-25745
CVE-2021-25745: is it exploited, and which versions of Kubernetes ingress-nginx are affected and fixed?
CVE-2021-25745 is an improper input validation vulnerability in Kubernetes ingress-nginx. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:09 UTC). Affected: k8s.io/ingress-nginx before 1.2.0 (GitHub advisory GHSA-pvmg-xgmx-9mxh). Fixed in 1.2.0 (GitHub advisory GHSA-pvmg-xgmx-9mxh). Severity: High (7.6, CVSS 3.1, from kubernetes).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:09 UTC, CVE record November 28, 2026, 20:16 UTC and NVD November 19, 2026, 07:48 UTC.
What is CVE-2021-25745?
Ingress-nginx path can be pointed to service account token file
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.
From the CVE record by kubernetes, last updated September 16, 2024, 18:24 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Kubernetes | Kubernetes ingress-nginx | before 1.2.0 | 1.2.0 |
As the CVE record by kubernetes states it, last updated September 16, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | k8s.io/ingress-nginx | < 1.2.0 | 1.2.0 | GHSA-pvmg-xgmx-9mxh |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 25, 2022. Summary: Improper Input Validation in k8s.io/ingress-nginx.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| kubernetes | ingress-nginx | before 1.2.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 03:42 UTC.
How severe is CVE-2021-25745?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.6 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L | kubernetes |
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N | NVD |
| Medium 5.5 | CVSS 2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-25745 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 1.18% probability of exploitation activity in the next 30 days, percentile 68.7 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-20 Improper Input Validation
Where are the vendor advisories and references?
- https://groups.google.com/g/kubernetes-security-announce/c/7vQrpDZeBlc x_refsource_MISC
- https://github.com/kubernetes/ingress-nginx/issues/8502 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220609-0006/ x_refsource_CONFIRM
Who found and reported it?
- Gafnit Amiga (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- January 21, 2021
- Published
- May 6, 2022, 00:50 UTC
- CVE record updated
- September 16, 2024, 18:24 UTC by kubernetes
- NVD
- Modified, last modified June 17, 2026, 03:42 UTC
- Last checked
- CVE list November 28, 2026, 20:16 UTC; NVD November 19, 2026, 07:48 UTC; KEV December 3, 2026, 17:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Kubernetes ingress-nginx?
- May 24, 2023CVE-2021-25748 Kubernetes ingress-nginx: improper input validation
- May 6, 2022CVE-2021-25746 Kubernetes ingress-nginx: improper input validation
- Oct 29, 2021CVE-2021-25742 Kubernetes ingress-nginx: improper input validation
Every CVE in Kubernetes ingress-nginx
Questions about CVE-2021-25745
Is CVE-2021-25745 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:09 UTC. FIRST's EPSS gives it a 1.18% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Kubernetes ingress-nginx are affected by CVE-2021-25745?
k8s.io/ingress-nginx before 1.2.0, per the GitHub advisory GHSA-pvmg-xgmx-9mxh. The tables above give every range the sources list.
Which version fixes CVE-2021-25745?
1.2.0, per the GitHub advisory GHSA-pvmg-xgmx-9mxh. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-25745?
High (7.6, CVSS 3.1, from kubernetes). The severity table above shows each score with its source.
Where is the official record of CVE-2021-25745?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.