High severity · published May 6, 2022
CVE-2021-25745
A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use the spec.rules[].http.paths[].path field of an Ingress object (in…
8.1
CVSS
1.2%
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 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:H/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.2% · higher than 68% 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.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-25745
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-25745
Issue Tracking
https://github.com/kubernetes/ingress-nginx/issues/8502
Issue Tracking
https://groups.google.com/g/kubernetes-security-announce/c/7vQrpDZeBlc
Third Party Advisory
https://security.netapp.com/advisory/ntap-20220609-0006/
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
