CVE-2025-24513 ingress-nginx controller - auth secret file path traversal vulnerability
Attacker-controlled data in filenames causes directory traversal in the ingress-nginx admission controller, leading to denial of service or secret disclosure.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-24513?
CVE-2025-24513 is a medium-severity path traversal vulnerability in kubernetes ingress-nginx, published on 24 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where attacker-provided data are included in a filename by the ingress-nginx Admission Controller feature, resulting in directory traversal within the container. This could result in denial of service, or when combined with other vulnerabilities, limited disclosure of Secret objects from the cluster.
Weakness: CWE-20
Which versions are affected by CVE-2025-24513?
5 open source packages ship an affected version, including k8s.io/ingress-nginx.
| Package | Affected | Fixed in |
|---|---|---|
k8s.io/ingress-nginx Go | All versions | None |
k8s.io/ingress-nginx Go | All versions | 1.11.5 |
k8s.io/ingress-nginx Go | All versions | 1.11.5 |
k8s.io/ingress-nginx Go | From 1.12.0-beta.0 | 1.12.1 |
k8s.io/ingress-nginx Go | From 1.12.0-beta.0 | 1.12.1 |
How do I fix CVE-2025-24513?
Upgrade k8s.io/ingress-nginx to a fixed version for your release line: 1.11.5 or 1.12.1.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-24513 being exploited?
There is no known exploitation of CVE-2025-24513 in the wild and no public exploit code.
Sources
Also known as GHSA-242m-6h72-7hgp, GO-2025-3564, MINI-469j-wj87-7338, MINI-6jjx-9c2f-3gxr, MINI-7chp-54mx-9rc3, MINI-834c-3cx4-44hp and 6 more.