# CVE-2021-25748: Ingress-nginx \`path\` sanitization can be bypassed with newline character

- Priority: **Routine**
- Reason: Not severe (CVSS 7.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-05-24 · Modified: 2025-01-16
- Aliases: GHSA-863x-868h-968x
- Record: https://cvemate.com/vulnerability/CVE-2021-25748 · JSON: https://cvemate.com/vulnerability/CVE-2021-25748/json

## Description

```text
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.
```

## Signals

- CVSS: 7.6 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
- EPSS: 0.694%, percentile 54.315%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- k8s.io ingress-nginx (Go): \< 1.2.1
- kubernetes ingress-nginx: \< 1.2.1
- kubernetes kubernetes ingress-nginx: ≥ unspecified, \< 1.2.1

## References

- <https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8>
- <https://github.com/kubernetes/ingress-nginx/issues/8686>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25748>
- <https://github.com/kubernetes/ingress-nginx/pull/8623>
- <https://github.com/kubernetes/ingress-nginx>
- <https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v1.2.1>

---

Data as of 2026-12-05T11:16:11.096Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
