CVE-2024-24569 `ZipSecurity#isBelowCurrentDirectory` is vulnerable to partial-path traversal vulnerability

Medium 5.4 Published Updated

Attackers can traverse to sibling directories, bypassing path restrictions in the Pixee Java security toolkit.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-24569?

CVE-2024-24569 is a medium-severity path traversal vulnerability in pixee java-security-toolkit, published on 1 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Pixee Java Code Security Toolkit is a set of security APIs meant to help secure Java code. `ZipSecurity#isBelowCurrentDirectory` is vulnerable to a partial-path traversal bypass. To be vulnerable to the bypass, the application must use toolkit version <=1.1.1, use ZipSecurity as a guard against path traversal, and have an exploit path. Although the control still protects attackers from escaping the application path into higher level directories (e.g., /etc/), it will allow "escaping" into sibling paths. For example, if your running path is /my/app/path you an attacker could navigate into /my/app/path-something-else. This vulnerability is patched in 1.1.2.

Weakness: CWE-22

Which versions are affected by CVE-2024-24569?

It affects 1 product.

Products include Pixee Java Code Security Toolkit.

How do I fix CVE-2024-24569?

No fix has been published for CVE-2024-24569 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-24569 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-24569 exists.

Sources

Also known as GHSA-qh4g-4m4w-jgv2.

Is CVE-2024-24569 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free