{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-25748","id":"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 ","descriptionLong":"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-24T00:00:00.000Z","updated":"2026-10-20T10:54:33.752454899Z","reserved":"2021-01-21T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"kubernetes","metric":{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","rating":"high","source":"kubernetes"},"metrics":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","rating":"high","source":"kubernetes"},{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","rating":"high","source":"liggitt.net"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"high","products":["Kubernetes ingress-nginx"],"affectedProducts":[{"vendor":"Kubernetes","product":"Kubernetes ingress-nginx","defaultStatus":null,"versions":[{"version":"unspecified","lessThan":"1.2.1","status":"affected","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"k8s.io/ingress-nginx","purl":"pkg:golang/k8s.io/ingress-nginx","ranges":["<1.2.1"],"fixed":["1.2.1"],"advisory":"GHSA-863x-868h-968x"}],"cwes":["CWE-20"],"aliases":["GHSA-863x-868h-968x"],"references":[{"url":"https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8","tags":["x_transferred","Mailing List","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://github.com/kubernetes/ingress-nginx/issues/8686","tags":["x_transferred","Issue Tracking","Mitigation","Vendor Advisory","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25748","tags":["advisory"]},{"url":"https://github.com/kubernetes/ingress-nginx/pull/8623","tags":["web"]},{"url":"https://github.com/kubernetes/ingress-nginx","tags":["package"]},{"url":"https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v1.2.1","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00694,"epssPercentile":0.53697,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-25748","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25748","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-25748","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-863x-868h-968x","ok":true,"note":"GHSA-863x-868h-968x"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-25748","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["nginx","kubernetes"],"critical":[],"attention":null}