First published: Wed May 24 2023(Updated: )
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.
Credit: jordan@liggitt.net jordan@liggitt.net
Affected Software | Affected Version | How to fix |
---|---|---|
go/k8s.io/ingress-nginx | <1.2.1 | 1.2.1 |
Kubernetes ingress-nginx | <1.2.1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2021-25748 is a security vulnerability in ingress-nginx that allows a user to bypass sanitization and obtain credentials by using a newline character in the 'spec.rules[].http.paths[].path' field of an Ingress object.
The severity of CVE-2021-25748 is medium with a CVSS score of 6.5.
A user can exploit CVE-2021-25748 by creating or updating ingress objects and using a newline character in the 'spec.rules[].http.paths[].path' field.
The software affected by CVE-2021-25748 is the k8s.io/ingress-nginx package version up to exclusive 1.2.1 and Kubernetes Ingress-nginx version up to exclusive 1.2.1.
To remediate CVE-2021-25748, update the k8s.io/ingress-nginx package to version 1.2.1 or higher.