CVE-2021-25748
Ingress-nginx `path` sanitization can be bypassed with newline character
Record from NVD · Published May 24, 2023
github.com/kubernetes/ingress-nginx is fixed in v1.2.1 and 1.2.1 (Go Modules)
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.
EPSS 0.69% · 52.9th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/kubernetes/ingress-nginx | Go Modules | v1.2.1, 1.2.1 |
| k8s.io/ingress-nginx | Go Modules | 1.2.1 |
| nginx-ingress-controller | Bitnami | 1.2.1 |
| Kubernetes ingress-nginx | Kubernetes | 1.2.1 |
| nginx-ingress-controller | Bitnami | 1.2.1 |
| ingress-nginx | kubernetes | 1.2.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| kubernetes | ingress-nginx | 0 |
Timeline
- May 24, 2023 CVE Published
- May 25, 2023 EPSS Score (30 in total, the first dated here)
- Mar 7, 2026 PoC Published
- Mar 23, 2026 Security Advisory
- Aug 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-25748
vulnetix vdb fixes CVE-2021-25748
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-25748/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart