CVE-2021-25746: Ingress-nginx directive injection via annotations
Vulnerability summary
CVE-2021-25746 is a high (CVSS 7.6) Improper Input Validation vulnerability in kubernetes ingress-nginx. EPSS estimates a 1.44% chance of exploitation in the next 30 days, higher than 74% of scored vulnerabilities.
Not severe (CVSS 7.6, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 06-05-2022PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
Description
A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use .metadata.annotations in 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 metrics
3 scores · 2 sources · 2 versions- NVDNIST7.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:NDiffers
EPSS trend
Probability
1.44%
Chance of exploitation in the next 30 days
Percentile
74%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.44% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Kubernetes2 products
- ingress-nginx< 1.2.0
- kubernetes ingress-nginx≥ unspecified, < 1.2.0
1 vendor · 2 products
References
3 links- groups.google.com/g/kubernetes-security-announce/c/hv2-SfdqcfQX Refsource MISCIssue TrackingMitigationThird Party Advisory
- github.com/kubernetes/ingress-nginx/issues/8503X Refsource MISCIssue TrackingMitigationThird Party Advisory