CVE-2025-0851 Path traversal issue in Deep Java Library

Critical 9.3 Published Updated

An attacker can write files to arbitrary locations via path traversal in DJL's unzip and untar utilities, potentially compromising system integrity.

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-0851?

CVE-2025-0851 is a critical path traversal vulnerability in AWS DeepJavaLibrary, published on 29 Jan 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A path traversal issue in ZipUtils.unzip and TarUtils.untar in Deep Java Library (DJL) on all platforms allows a bad actor to write files to arbitrary locations.

Weakness: CWE-73, CWE-36

Which versions are affected by CVE-2025-0851?

2 open source packages ship an affected version, including ai.djl:api.

PackageAffectedFixed in
ai.djl:api MavenAll versions0.31.1
ai.djl:api MavenAll versions0.31.1

How do I fix CVE-2025-0851?

Upgrade ai.djl:api to 0.31.1 or later.

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

Is CVE-2025-0851 being exploited?

There is no known exploitation of CVE-2025-0851 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-jcrp-x7w3-ffmg.

Is CVE-2025-0851 in your software?

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

Check your SBOMs for free