CVE-2021-25748
published high CVSS 3.1 · 7.6Ingress-nginx `path` sanitization can be bypassed with newline character
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Kubernetes | — | Kubernetes ingress-nginxunspecified to < 1.2.1 | Affected | Not stated | kubernetes |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.6 / 10
- Severity
- high
- Provider
- kubernetes · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Kubernetes | Kubernetes ingress-nginx | unspecified to < 1.2.1 (affected · custom) | kubernetes · cna |
Weaknesses
1- CWE-20 CWE-20: Improper Input Validation
References
2Provider assertions
3kubernetes · cna
Ingress-nginx `path` sanitization can be bypassed with newline character
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 23cfcf4d2527e6b81d227fef788996a3c2e929b8b70bf87d316ebefd804d3a73
- Ingested
- 23 Sep 2026, 07:53:18 UTC
- Source record
- Official CVE record