{"id":"BIT-nginx-ingress-controller-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.","modified":"2026-05-20T08:12:01.418666807Z","published":"2024-03-06T10:58:58.103Z","withdrawn":"2026-05-20T08:00:05.908499204Z","database_specific":{"severity":"Medium","cpes":["cpe:2.3:a:kubernetes:ingress-nginx:*:*:*:*:*:*:*:*"]},"references":[{"type":"WEB","url":"https://github.com/kubernetes/ingress-nginx/issues/8686"},{"type":"WEB","url":"https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25748"}],"affected":[{"package":{"name":"nginx-ingress-controller","ecosystem":"Bitnami","purl":"pkg:bitnami/nginx-ingress-controller"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.1"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/nginx-ingress-controller/BIT-nginx-ingress-controller-2021-25748.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}],"schema_version":"1.7.3"}