CVE-2021-25745Kubernetes Ingress-nginx
High 8.1
Follow: this CVE · Kubernetes · Kubernetes Ingress-nginx We alert you by email or Slack (account required).
- Priority
- 49
- CVSS 3.1
- 8.1
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 68
- Auth required
- Yes
- Published
- May 6, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Ingress-nginx.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | k8s.io/ingress-nginx |
< 1.2.0 |
1.2.0 |
go get k8s.io/ingress-nginx@v1.2.0 |
Per OSV / GitHub Advisories (GHSA-pvmg-xgmx-9mxh). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| kubernetes | ingress-nginx | < 1.2.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Issue Tracking Mitigation Third Party Advisory
- groups.google.com Issue Tracking Mailing List Mitigation
- security.netapp.com Third Party Advisory