{"id":"GHSA-863x-868h-968x","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.","aliases":["CVE-2021-25748"],"modified":"2026-08-07T08:12:12.689596686Z","published":"2023-05-24T18:30:26Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2023-05-24T21:55:34Z","nvd_published_at":"2023-05-24T17:15:09Z","cwe_ids":["CWE-20"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25748"},{"type":"WEB","url":"https://github.com/kubernetes/ingress-nginx/issues/8686"},{"type":"WEB","url":"https://github.com/kubernetes/ingress-nginx/pull/8623"},{"type":"PACKAGE","url":"https://github.com/kubernetes/ingress-nginx"},{"type":"WEB","url":"https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v1.2.1"},{"type":"WEB","url":"https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8"}],"affected":[{"package":{"name":"k8s.io/ingress-nginx","ecosystem":"Go","purl":"pkg:golang/k8s.io/ingress-nginx"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/05/GHSA-863x-868h-968x/GHSA-863x-868h-968x.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}