Vulnerability record · CVE-2021-25748 · published 24 May 2023
CVE-2021-25748: Kubernetes ingress-nginx improper input validation vulnerability
Kubernetes · Ingress Nginx
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.
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/kubernetes/ingress-nginx/issues/8686 | Issue TrackingMitigationVendor Advisory |
| https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8 | Mailing ListMitigationVendor Advisory |
| https://github.com/kubernetes/ingress-nginx/issues/8686 | Issue TrackingMitigationVendor Advisory |
| https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8 | Mailing ListMitigationVendor Advisory |
Track CVE-2021-25748 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-25748), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.