CVE-2021-25748
mediumpriority · track · 26EPSS 0.007 · 53 %ileDEEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6–7.6
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2024-1591Juniper JUNOS: Mehrere SchwachstellenDeutsch2024-07-10csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in Juniper JUNOS ausnutzen, um einen Denial of Service zu verursachen, Informationen offenzulegen, Privilegien zu erweitern und Sicherheitsmechanismen inklusive zu umgehen.
- GHSA-863x-868h-968xIngress-nginx `path` sanitization can be bypassed with newline character2023-05-24ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2021-25748/cnnvd
- https://github.com/kubernetes/ingress-nginx/issues/8686cnnvd
- https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8cnnvd
- https://github.com/kubernetes/ingress-nginx/issues/8686enisa_euvd
- https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8enisa_euvd
- https://github.com/kubernetes/ingress-nginx/issues/8686Issue TrackingMitigationVendor Advisorynvd
- https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8Mailing ListMitigationVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan