{"id":"CVE-2021-25748","aliases":["GHSA-863x-868h-968x"],"url":"https://o3.security/vulnerability/CVE-2021-25748","summary":"Ingress-nginx `path` sanitization can be bypassed with newline character","details":"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.","published":"2023-05-24T17:15:09.253Z","modified":"2026-08-07T08:12:27.962872940Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"k8s.io/ingress-nginx","fixedVersion":"1.2.1"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8"},{"type":"REPORT","url":"https://github.com/kubernetes/ingress-nginx/issues/8686"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T08:12:27.962872940Z"}}