CVE-2021-25748

published 24 May 2023 · updated 16 Jan 2025

Ingress-nginx `path` sanitization can be bypassed with newline character

7.6HighCVSS 7.6EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.2.1.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Kubernetes<1.2.11.2.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-25748 severity on Zeptric[![CVE-2021-25748](https://zeptric.io/badge/cve/CVE-2021-25748.svg)](https://zeptric.io/cve/CVE-2021-25748)