Medium severity · published May 24, 2023
CVE-2021-25748
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…
6.5
CVSS
0.7%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 53% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
IN
Ingress-nginx · Kubernetes
before 1.2.1 · source: NVD
Affected product
IN
Ingress-nginx
Kubernetes
More from Ingress-nginx
8.8
CVE-2026-4342
ingress-nginx comment-based nginx configuration injection
8.8
CVE-2026-3288
ingress-nginx rewrite-target nginx configuration injection
8.8
CVE-2025-15566
ingress-nginx auth-proxy-set-headers nginx configuration injection
8.8
CVE-2026-24512
ingress-nginx auth-method nginx configuration injection
8.8
CVE-2026-1580
ingress-nginx auth-method nginx configuration injection