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.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
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.
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.
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.
1 exploit validated by Mallory's analysis.
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.