CVE-2021-25745
HIGH 8.1CVSS 3.1Improper Input Validation in k8s.io/ingress-nginx
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.
- Published
- 6 May 2022
- Last modified
- 7 Aug 2026
- Assigned by
- jordan@liggitt.net
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-pvmg-xgmx-9mxh
- Sources
- NVDJSONOSV GHSA-pvmg-xgmx-9mxhJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | jordan@liggitt.net (Secondary) | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.5 | AV:N/AC:L/Au:S/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | kubernetes | ingress-nginxcpe:2.3:a:kubernetes:ingress-nginx:*:*:*:*:*:*:*:* |
< 1.2.0 | 1.2.0 |
| OSV | Go | k8s.io/ingress-nginx | < 1.2.0 | 1.2.0 |
References
- https://github.com/kubernetes/ingress-nginx/issues/8502 · Issue Tracking, Mitigation, Third Party Advisory, WEB
- https://groups.google.com/g/kubernetes-security-announce/c/7vQrpDZeBlc · Issue Tracking, Mailing List, Mitigation, Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20220609-0006/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-25745 · ADVISORY
- https://github.com/kubernetes/ingress-nginx · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 6 May 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 7 May 2022)