{"id":"CVE-2021-25748","published":"2023-05-24T00:00:00Z","modified":"2025-01-16T21:23:39Z","title":"Ingress-nginx `path` sanitization can be bypassed with newline character","vendor":"Kubernetes","product":"Kubernetes ingress-nginx","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00694,"percentile":0.48276,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8","tags":[]},{"url":"https://github.com/kubernetes/ingress-nginx/issues/8686","tags":[]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":9.66},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"kubernetes","affectedVersions":[{"vendor":"Kubernetes","product":"Kubernetes ingress-nginx","versions":[">= unspecified, < 1.2.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-01-16T21:23:23.823577Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"k8s.io/ingress-nginx","vulnerableRanges":["<1.2.1"],"patched":["1.2.1"],"from":["GHSA-863x-868h-968x"],"provenance":"source"}],"summary":{"text":"Kubernetes ingress-nginx contains an input validation flaw in the sanitization of the spec.rules[].http.paths[].path field of Ingress objects, which a newline character can bypass. An attacker who holds permission to create or update Ingress objects, and who is authenticated to the cluster with that low-privilege access and needs no user interaction, can use the bypass to obtain the ingress-nginx controller's credentials, which in the default configuration grant access to all cluster secrets.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:24:01Z"},"euvd":{"id":"EUVD-2023-1500","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-kubernetes-ingress-nginx-cve-2021-25745","packageHistory":[{"cve":"CVE-2026-4342","published":"2026-03-19","fixed":"0.0.0-20260319175635-5183b7d86137","kev":false},{"cve":"CVE-2020-8553","published":"2020-07-29","fixed":"0.28.0","kev":false},{"cve":"CVE-2021-25745","published":"2022-05-06","fixed":"1.2.0","kev":false,"link":{"from":"CVE-2021-25745","to":"CVE-2021-25748","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:k8s.io/ingress-nginx","fromFixed":"1.2.0","toFixed":"1.2.1","daysApart":383},{"kind":"similar","provenance":"machine","score":0.9,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2021-25748","published":"2023-05-24","fixed":"1.2.1","kev":false},{"cve":"CVE-2018-1002104","published":"2020-01-14","fixed":"1.5","kev":false},{"cve":"CVE-2022-4886","published":"2023-10-25","fixed":"1.8.0","kev":false},{"cve":"CVE-2023-5043","published":"2023-10-25","fixed":"1.9.0","kev":false}],"package":"Go:k8s.io/ingress-nginx"}}