Home / Kubernetes / Kubernetes ingress-nginx / CVE-2021-25748
CVE-2021-25748: is it exploited, and which versions of Kubernetes ingress-nginx are affected and fixed?
CVE-2021-25748 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:39 UTC). Affected: k8s.io/ingress-nginx before 1.2.1 (GitHub advisory GHSA-863x-868h-968x). Fixed in 1.2.1 (GitHub advisory GHSA-863x-868h-968x). Severity: High (7.6, CVSS 3.1, from kubernetes).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:39 UTC, CVE record November 28, 2026, 20:16 UTC and NVD November 19, 2026, 07:39 UTC.
What is CVE-2021-25748?
Ingress-nginx `path` sanitization can be bypassed with newline character
A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use a newline character to bypass the sanitization of 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 January 16, 2025, 21:23 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Kubernetes | Kubernetes ingress-nginx | before 1.2.1 | 1.2.1 |
As the CVE record by kubernetes states it, last updated January 16, 2025. 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.1 | 1.2.1 | GHSA-863x-868h-968x |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated June 2, 2023. Summary: Ingress-nginx `path` sanitization can be bypassed with newline character.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| kubernetes | ingress-nginx | before 1.2.1 | application |
NVD analysis (status Modified), last modified June 17, 2026, 03:42 UTC.
How severe is CVE-2021-25748?
| 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 |
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/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-25748 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, January 16, 2025)
- EPSS
- 0.69% probability of exploitation activity in the next 30 days, percentile 54.3 (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/avaRYa9c7I8
- https://github.com/kubernetes/ingress-nginx/issues/8686
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 24, 2023, 00:00 UTC
- CVE record updated
- January 16, 2025, 21:23 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:39 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Kubernetes ingress-nginx?
- May 6, 2022CVE-2021-25746 Kubernetes ingress-nginx: improper input validation
- May 6, 2022CVE-2021-25745 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-25748
Is CVE-2021-25748 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:39 UTC. FIRST's EPSS gives it a 0.69% 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-25748?
k8s.io/ingress-nginx before 1.2.1, per the GitHub advisory GHSA-863x-868h-968x. The tables above give every range the sources list.
Which version fixes CVE-2021-25748?
1.2.1, per the GitHub advisory GHSA-863x-868h-968x. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-25748?
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-25748?
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.