{"api_version":"1","generated_at":"2026-04-23T02:36:48+00:00","cve":"CVE-2021-25748","urls":{"html":"https://cve.report/CVE-2021-25748","api":"https://cve.report/api/cve/CVE-2021-25748.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-25748","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-25748"},"summary":{"title":"CVE-2021-25748","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.","state":"PUBLIC","assigner":"security@kubernetes.io","published_at":"2023-05-24 17:15:00","updated_at":"2023-06-01 20:44:00"},"problem_types":["NVD-CWE-noinfo"],"metrics":[],"references":[{"url":"https://github.com/kubernetes/ingress-nginx/issues/8686","name":"https://github.com/kubernetes/ingress-nginx/issues/8686","refsource":"MISC","tags":[],"title":"CVE-2021-25748: Ingress-nginx `path` sanitization can be bypassed with newline character · Issue #8686 · kubernetes/ingress-nginx · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8","name":"https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8","refsource":"MISC","tags":[],"title":"[Security Advisory] CVE-2021-25748: Ingress-nginx `path` sanitization can be bypassed with newline character","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-25748","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25748","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Gafnit Amiga","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"25748","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"kubernetes","cpe5":"ingress-nginx","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@kubernetes.io","DATE_PUBLIC":"2022-06-10T16:00:00.000Z","ID":"CVE-2021-25748","STATE":"PUBLIC","TITLE":"Ingress-nginx `path` sanitization can be bypassed with newline character"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Kubernetes ingress-nginx","version":{"version_data":[{"version_affected":"<","version_value":"1.2.1"}]}}]},"vendor_name":"Kubernetes"}]}},"credit":[{"lang":"eng","value":"Gafnit Amiga"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7.6,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-20: Improper Input Validation"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8","name":"https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8"},{"refsource":"MISC","url":"https://github.com/kubernetes/ingress-nginx/issues/8686","name":"https://github.com/kubernetes/ingress-nginx/issues/8686"}]},"source":{"defect":["https://github.com/kubernetes/ingress-nginx/issues/8686"],"discovery":"EXTERNAL"}},"nvd":{"publishedDate":"2023-05-24 17:15:00","lastModifiedDate":"2023-06-01 20:44:00","problem_types":["NVD-CWE-noinfo"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:kubernetes:ingress-nginx:*:*:*:*:*:*:*:*","versionEndExcluding":"1.2.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"25748","Ordinal":"200574","Title":"CVE-2021-25748","CVE":"CVE-2021-25748","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"25748","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}