CVE-2024-37902 Path thraversal in DeepJavaLibrary
Attackers can overwrite system files via absolute paths in archived artifacts, potentially leading to code execution or data modification.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-37902?
CVE-2024-37902 is a critical path traversal vulnerability in deepjavalibrary djl, published on 17 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
DeepJavaLibrary(DJL) is an Engine-Agnostic Deep Learning Framework in Java. DJL versions 0.1.0 through 0.27.0 do not prevent absolute path archived artifacts from inserting archived files directly into the system, overwriting system files. This is fixed in DJL 0.28.0 and patched in DJL Large Model Inference containers version 0.27.0. Users are advised to upgrade.
Weakness: CWE-22
Which versions are affected by CVE-2024-37902?
2 open source packages ship an affected version, including ai.djl:api.
| Package | Affected | Fixed in |
|---|---|---|
ai.djl:api Maven | From 0.1.0 | 0.28.0 |
ai.djl:api Maven | From 0.1.0 | 0.28.0 |
How do I fix CVE-2024-37902?
Upgrade ai.djl:api to 0.28.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-37902 being exploited?
There is no known exploitation of CVE-2024-37902 in the wild and no public exploit code.
Sources
Also known as GHSA-w877-jfw7-46rj.