CVEvulnerability
CVE-2021-25748
6.5 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2023-05-24
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.6 HIGH — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
- CVSS 3.1 ([email protected])
- 6.5 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-20
Description
A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use a newline character to bypass the sanitization of 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.
Affected configurations
• kubernetes ingress-nginx (< 1.2.1)
Related
Weakness · CWE (1)
- CWE-20 Improper Input Validation weakness
References
- https://github.com/kubernetes/ingress-nginx/issues/8686 Issue Tracking, Mitigation, Vendor Advisory
- https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8 Mailing List, Mitigation, Vendor Advisory
- https://github.com/kubernetes/ingress-nginx/issues/8686 Issue Tracking, Mitigation, Vendor Advisory
- https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8 Mailing List, Mitigation, Vendor Advisory