CVE-2025-0851: Path Traversal Arbitrary File Write in Deep Java Library (DJL) ZipUtils.unzip and TarUtils.untar
CVE-2025-0851 is a path traversal vulnerability in Deep Java Library (DJL) affecting the archive extraction routines ZipUtils.unzip and TarUtils.untar on all platforms. The flaw allows a crafted ZIP or TAR archive containing traversal sequences in file paths to escape the intended extraction directory and cause files to be written to attacker-controlled arbitrary locations on the filesystem. This is a classic archive extraction traversal issue in which insufficient validation or sanitization of archive entry paths permits writes outside the target directory.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows arbitrary file write to locations accessible by the DJL process. Depending on runtime privileges and filesystem layout, this can lead to compromise of application integrity, overwriting or planting files used by other services, persistence, or follow-on exploitation. The provided advisory specifically notes the possibility of gaining SSH access by injecting SSH authorized keys, or uploading HTML files that could be used in cross-site scripting scenarios.
Mitigation
If you can’t patch tonight, do this now.
Until patching is completed, restrict access to systems and workflows that process untrusted ZIP or TAR archives with DJL, limit the privileges of the DJL process to reduce writable filesystem scope, and monitor for suspicious file creation or modification outside expected extraction directories. Additional hardening such as filesystem permission restrictions and isolating archive extraction in constrained environments can reduce risk.
Remediation
Patch, then assume compromise.
Upgrade Deep Java Library (DJL) to version 0.31.1 or later, which contains the vendor-provided fix for the path traversal issue in ZipUtils.unzip and TarUtils.untar.
Exploits
1 exploit validated by Mallory's analysis.
References
Frequently asked questions
- Is CVE-2025-0851 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2025-0851 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-0851?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2025-0851, the earliest disclosed Feb 17, 2025.
- Is there a patch for CVE-2025-0851?
- Upgrade Deep Java Library (DJL) to version 0.31.1 or later, which contains the vendor-provided fix for the path traversal issue in ZipUtils.unzip and TarUtils.untar.
- How severe is CVE-2025-0851?
- CVE-2025-0851 has a CVSS v4 score of 9.3 (Critical) and an EPSS score of 26.4% (98th percentile) as of Sep 25, 2026.
Recent activity
2 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.