{"id":"GHSA-863x-868h-968x","revision":"51197d08274540da898415720e215f4e","records":[{"revision":"51197d08274540da898415720e215f4e","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-863x-868h-968x","aliases":["CVE-2021-25748"],"title":"Ingress-nginx `path` sanitization can be bypassed with newline character","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.","state":0,"publishedAt":"2023-05-24T18:30:26+00:00","modifiedAt":"2026-08-07T08:12:12.6895967+00:00","affected":[{"ecosystem":"Go","name":"k8s.io/ingress-nginx","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.2.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-25748","https://github.com/kubernetes/ingress-nginx/issues/8686","https://github.com/kubernetes/ingress-nginx/pull/8623","https://github.com/kubernetes/ingress-nginx","https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v1.2.1","https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8"],"sourceUrl":"https://github.com/advisories/GHSA-863x-868h-968x","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-863x-868h-968x","identifiers":["GHSA-863x-868h-968x","CVE-2021-25748"]},"retained":false,"historicalAffected":[]}],"coverage":[]}