Wiz Agents & Workflows are here

CVE-2025-0851
Java vulnerability analysis and mitigation

Overview

A path traversal vulnerability (CVE-2025-0851) was discovered in Deep Java Library (DJL) versions 0.1.0 through 0.31.0. The vulnerability exists in the ZipUtils.unzip and TarUtils.untar utilities that are used for extracting tar and zip model archives when loading models for use with DJL. The issue was disclosed on January 29, 2025, and has been assigned a CVSS score of 9.8 (Critical) (NVD, GitHub Advisory).

Technical details

The vulnerability stems from a failure to protect against absolute path traversal during the extraction process. Specifically, when an archive is created on a Windows system and extracted on macOS or Linux (or vice versa), it can write artifacts outside the intended destination directory. This cross-platform path traversal issue affects the model archive extraction functionality, which is a core feature used when loading models in DJL (GitHub Advisory).

Impact

The vulnerability allows attackers to write files to arbitrary locations on the affected system. In AI and machine learning environments, this could lead to several attack scenarios including: remote SSH takeover through malicious SSH key injection, supply chain attacks via compromised model archives, and potential cross-site scripting (XSS) attacks through injection of rogue HTML files into web-accessible directories (Security Online).

Mitigation and workarounds

The vulnerability has been patched in DJL version 0.31.1. Users are strongly advised to upgrade to this version or later. As a workaround, users should avoid using model archive files from untrusted sources and only use model archives from official sources like the DJL Model Zoo or models that have been created and packaged by the users themselves (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34361CRITICAL9.3
  • JavaJava
  • ca.uhn.hapi.fhir:org.hl7.fhir.validation
NoYesMar 30, 2026
CVE-2026-34214HIGH7.7
  • JavaJava
  • trino
NoYesMar 29, 2026
CVE-2026-34359HIGH7.4
  • JavaJava
  • ca.uhn.hapi.fhir:org.hl7.fhir.core
NoYesMar 30, 2026
CVE-2026-34237MEDIUM6.1
  • JavaJava
  • io.modelcontextprotocol.sdk:mcp-core
NoYesMar 30, 2026
CVE-2026-34360MEDIUM5.8
  • JavaJava
  • ca.uhn.hapi.fhir:org.hl7.fhir.core
NoYesMar 30, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management