{"cve":"CVE-2021-25748","nvd":{"published":"2023-05-24T17:15:09.253","modified":"2026-06-17T03:42:23.740","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-20"],"references":["https://github.com/kubernetes/ingress-nginx/issues/8686","https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8","https://github.com/kubernetes/ingress-nginx/issues/8686","https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8"],"products":["kubernetes:ingress-nginx"],"source":"nvd","synced_at":"2026-10-19T21:38:18.424950729+00:00"},"epss":{"cve":"CVE-2021-25748","score":0.00694,"percentile":0.52943,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-863x-868h-968x","url":"https://osv.dev/vulnerability/GHSA-863x-868h-968x","summary":"Ingress-nginx `path` sanitization can be bypassed with newline character","modified":"2026-08-07T08:12:12.689596686Z","packages":[{"ecosystem":"Go","name":"k8s.io/ingress-nginx","purl":"pkg:golang/k8s.io/ingress-nginx","ranges":["<1.2.1"],"fixed":["1.2.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}