CVE-2021-25748
JSON

7.6high

Ingress-nginx `path` sanitization can be bypassed with newline character

Severity
7.6high CVSS:3.1 by kubernetes
Exploit likelihood
0.69% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
kubernetes
Also known as
GHSA-863x-868h-968x

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.

Affected

Product or packageVersionsReported by
Kubernetes Kubernetes ingress-nginxfrom unspecified before 1.2.1CVE List
k8s.io/ingress-nginx (Go)before 1.2.1GitHub Advisory Database
kubernetes ingress-nginxbefore 1.2.1NVD

All scores

kubernetes7.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-20

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-25748 changed 2025-01-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-863x-868h-968x changed 2026-08-07CC-BY-4.0
NVDCVE-2021-25748 changed 2026-06-17Public domain