Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2025-0851: Path Traversal Arbitrary File Write in Deep Java Library (DJL) ZipUtils.unzip and TarUtils.untar

Published Jan 29, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.3Critical · v4
EPSS26.4%98th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
IdentifiersCVE-2025-0851CWE-22

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

FAQ

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.
Activity feed

Recent activity

2 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.

View more in app →

No news coverage yet. Advisories and community discussion only.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.