{"id":"CVE-2021-25748","state":"PUBLISHED","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 all secrets in the cluster.","publishedAt":"2023-05-24T00:00:00.000Z","updatedAt":"2025-01-16T21:23:39.341Z","severity":{"score":7.6,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","source":"kubernetes"},"assigner":"kubernetes","products":["Kubernetes Kubernetes ingress-nginx"],"affected":[{"vendor":"Kubernetes","product":"Kubernetes ingress-nginx","versions":[{"version":"unspecified","status":"affected","lessThan":"1.2.1","versionType":"custom"}]}],"references":["https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8","https://github.com/kubernetes/ingress-nginx/issues/8686"],"weaknesses":["CWE-20"],"ingestedAt":"2026-10-29T19:48:10.461Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/25xxx/CVE-2021-25748.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-25748","state":"PUBLISHED","datePublished":"2023-05-24T00:00:00.000Z","dateUpdated":"2025-01-16T21:23:39.341Z","assignerShortName":"kubernetes","assignerOrgId":"a6081bf6-c852-4425-ad4f-a67919267565","dateReserved":"2021-01-21T00:00:00.000Z"},"containers":{"cna":{"title":"Ingress-nginx `path` sanitization can be bypassed with newline character","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Kubernetes","product":"Kubernetes ingress-nginx","versions":[{"version":"unspecified","status":"affected","lessThan":"1.2.1","versionType":"custom"}]}],"references":[{"url":"https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8"},{"url":"https://github.com/kubernetes/ingress-nginx/issues/8686"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"LOW","availabilityImpact":"LOW","baseScore":7.6,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","type":"CWE","lang":"en","description":"CWE-20: Improper Input Validation"}]}],"providerMetadata":{"shortName":"kubernetes","orgId":"a6081bf6-c852-4425-ad4f-a67919267565","dateUpdated":"2023-05-24T00:00:00.000Z"},"datePublic":"2022-06-10T00:00:00.000Z","credits":[{"lang":"en","value":"Gafnit Amiga"}],"x_generator":{"engine":"Vulnogram 0.0.9"},"source":{"defect":["https://github.com/kubernetes/ingress-nginx/issues/8686"],"discovery":"EXTERNAL"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8","tags":["x_transferred"]},{"url":"https://github.com/kubernetes/ingress-nginx/issues/8686","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T20:11:28.404Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-01-16T21:23:23.823577Z","id":"CVE-2021-25748","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-01-16T21:23:39.341Z"}}]}}}