CVE-2021-25748 Ingress-nginx `path` sanitization can be bypassed with newline character
MediumCVSS 6.5
EPSS 0.69%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- NginxKubernetes
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| k8s.io/ingress-nginx(Go) | < 1.2.1 | 1.2.1 | Fixed |
| Kubernetes ingress-nginx | < 1.2.1 | 1.2.1 | Fixed |
| kubernetes ingress-nginx | < 1.2.1 | 1.2.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| k8s.io/ingress-nginx(Go) | < 1.2.1 | 1.2.1 |
| kubernetes ingress-nginx | < 1.2.1 | 1.2.1 |
| Kubernetes ingress-nginx | < 1.2.1 | 1.2.1 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking mitigation vendor-advisory
- groups.google.com mailing-list mitigation vendor-advisory
- github.com patch
- github.com
- github.com
- github.com product
- CVE-2021-25748 vendor-advisory