{"id":"CVE-2021-25748","aliases":["CVE-2021-25748","GHSA-863x-868h-968x"],"related":[],"kind":"vulnerability","state":"published","title":"Ingress-nginx `path` sanitization can be bypassed with newline character","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2023-05-24T00:00:00.000Z","modified":"2026-08-07T08:12:12.689Z","severity":{"scorer":"kubernetes","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"kubernetes","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","score":7.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.2.1","status":"affected"}],"vendor":"Kubernetes","product":"Kubernetes ingress-nginx","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.2.1"}],"ecosystem":"Go","package":"k8s.io/ingress-nginx","purl":"pkg:golang/k8s.io/ingress-nginx","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.2.1"}],"vendor":"kubernetes","product":"ingress-nginx","cpe":"cpe:2.3:a:kubernetes:ingress-nginx:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8","tags":["mailing-list","mitigation","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/kubernetes/ingress-nginx/issues/8686","tags":["issue-tracking","mitigation","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25748","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/kubernetes/ingress-nginx/pull/8623","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/kubernetes/ingress-nginx","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v1.2.1","tags":["web"],"sources":["ghsa"]}],"credits":["Gafnit Amiga"],"assigner":"kubernetes","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-01-16T21:23:23.823Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-25748","url":"https://www.cve.org/CVERecord?id=CVE-2021-25748","licence":"CVE Terms of Use","modified":"2025-01-16T21:23:39.341Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-863x-868h-968x","url":"https://github.com/advisories/GHSA-863x-868h-968x","licence":"CC-BY-4.0","modified":"2026-08-07T08:12:12.689Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-25748","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25748","licence":"Public domain","modified":"2026-06-17T03:42:23.740Z"}],"updatedAt":"2026-11-25T22:58:08.467Z","epss":{"score":0.00694,"percentile":0.54179,"date":"2026-12-01T12:00:22.000Z"}}