CVE-2021-25745
Ingress-nginx path can be pointed to service account token file
Reported by kubernetes · Published May 6, 2022
k8s.io/ingress-nginx is fixed in 1.2.0 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| k8s.io/ingress-nginx | Go Modules | 1.2.0 |
| github.com/kubernetes/ingress-nginx | Go Modules | v1.2.0, 1.2.0 |
| kubectl-ingress-nginx | Arch Linux | 1.2.0-1 |
| nginx-ingress-controller | Bitnami | 1.2.0 |
| nginx-ingress-controller | Bitnami | 1.2.0 |
| ingress-nginx | kubernetes | 1.2.0 |
| Kubernetes ingress-nginx | Kubernetes | 1.2.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Kubernetes | Kubernetes ingress-nginx | unspecified |
| chainguard | ingress-nginx-controller-fips | * |
| chainguard | ingress-nginx-controller-fips-1.9 | * |
| wolfi | ingress-nginx-controller | * |
| chainguard | ingress-nginx-controller | * |
| arch | kubectl-ingress-nginx | 0 |
| chainguard | ingress-nginx-controller-1.9 | * |
| github.com | kubernetes/ingress-nginx | 0 |
| Kubernetes | Kubernetes ingress-nginx | * |
| k8s.io | ingress-nginx | 0 |
Timeline
- May 6, 2022 CVE Published
- May 6, 2022 EPSS Score (30 in total, the first dated here)
- Nov 11, 2024 CVE Updated
- Mar 18, 2026 Security Advisory
- Aug 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-25745
vulnetix vdb fixes CVE-2021-25745
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-25745/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- https://github.com/advisories/GHSA-pvmg-xgmx-9mxh advisory
- https://nvd.nist.gov/vuln/detail/CVE-2021-25745 advisory