The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-0851

CVE-2025-0851: Deep Java Library Path Traversal Flaw

CVE-2025-0851 is a path traversal vulnerability in Deep Java Library (DJL) affecting ZipUtils.unzip and TarUtils.untar functions. Attackers can exploit this flaw to write files to arbitrary locations across all platforms.

Updated: January 22, 2026

CVE-2025-0851 Overview

A path traversal vulnerability exists in the ZipUtils.unzip and TarUtils.untar functions within Deep Java Library (DJL) affecting all platforms. This security flaw allows an attacker to write files to arbitrary locations on the file system by crafting malicious archive files containing specially crafted path sequences. When a vulnerable application processes such archives, the extraction routines fail to properly sanitize file paths, enabling directory escape and arbitrary file write operations.

Critical Impact

This path traversal vulnerability enables attackers to write malicious files to any location accessible by the application, potentially leading to remote code execution, system compromise, or data destruction across all platforms running affected DJL versions.

Affected Products

  • Deep Java Library (DJL) versions prior to v0.31.1
  • Applications using ZipUtils.unzip functionality
  • Applications using TarUtils.untar functionality

Discovery Timeline

  • 2025-01-29 - CVE CVE-2025-0851 published to NVD
  • 2025-10-14 - Last updated in NVD database

Technical Details for CVE-2025-0851

Vulnerability Analysis

This vulnerability is classified under CWE-36 (Absolute Path Traversal), a weakness where software uses external input to construct a pathname that should be within a restricted directory, but fails to properly neutralize absolute path sequences that could resolve to a location outside of that directory.

The Deep Java Library provides utility classes for handling compressed archives in Java applications, commonly used in machine learning and AI workloads. The vulnerable functions ZipUtils.unzip and TarUtils.untar do not adequately validate or sanitize the file paths contained within archive entries before extracting them. An attacker can craft a malicious ZIP or TAR archive containing entries with path traversal sequences (such as ../ or absolute paths) that escape the intended extraction directory.

When the archive is processed by a vulnerable DJL application, the malicious entries are written to arbitrary locations on the filesystem with the permissions of the running application. This is particularly dangerous in server-side applications, CI/CD pipelines, or machine learning training environments where DJL might process untrusted model archives or datasets.

Root Cause

The root cause of this vulnerability lies in insufficient input validation within the archive extraction functions. The ZipUtils.unzip and TarUtils.untar methods fail to canonicalize and validate destination paths before writing extracted files. Specifically, the code does not verify that the resolved output path remains within the intended extraction directory, allowing entries with malicious path components to escape the destination folder and write to arbitrary filesystem locations.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Crafting a malicious ZIP or TAR archive containing entries with path traversal sequences (e.g., ../../etc/cron.d/malicious)
  2. Delivering the malicious archive to a target application that uses DJL's archive extraction utilities
  3. When the application extracts the archive, files are written to attacker-controlled paths outside the intended directory

The vulnerability is particularly concerning in scenarios where applications automatically download and extract model archives, datasets, or other resources from potentially untrusted sources. Machine learning pipelines that fetch pre-trained models or training data are prime targets for this attack.

Detection Methods for CVE-2025-0851

Indicators of Compromise

  • Unexpected files appearing in system directories (e.g., /etc, /usr/local/bin, Windows system folders)
  • Application logs showing extraction operations with unusual file paths containing ../ sequences
  • Newly created or modified files outside of expected application directories following archive extraction operations
  • Suspicious cron jobs, startup scripts, or configuration files appearing after DJL-based applications process archives

Detection Strategies

  • Monitor file system write operations for paths containing directory traversal sequences during archive extraction
  • Implement application-level logging to capture all file paths extracted by DJL utilities
  • Deploy file integrity monitoring (FIM) on critical system directories to detect unauthorized writes
  • Review application dependencies for DJL versions prior to v0.31.1

Monitoring Recommendations

  • Enable comprehensive audit logging for file creation and modification events on systems running DJL applications
  • Configure SIEM rules to alert on file operations with path traversal patterns in application contexts
  • Monitor for unusual child processes spawned by Java applications that could indicate successful code execution post-exploitation
  • Establish baselines for DJL application file operations and alert on deviations

How to Mitigate CVE-2025-0851

Immediate Actions Required

  • Upgrade Deep Java Library to version v0.31.1 or later immediately
  • Audit all applications using DJL to identify instances of ZipUtils.unzip or TarUtils.untar usage
  • Review recent archive extraction operations for potential exploitation attempts
  • Validate the integrity of systems that have processed untrusted archives using vulnerable DJL versions

Patch Information

AWS has released a security bulletin addressing this vulnerability. The fix is available in DJL version v0.31.1. Organizations should update their DJL dependencies to this version or later. Additional details are available in the GitHub Security Advisory GHSA-jcrp-x7w3-ffmg and the AWS Security Bulletin AWS-2025-003.

Workarounds

  • If immediate patching is not possible, implement input validation to reject archives from untrusted sources
  • Deploy application-level controls to restrict archive extraction to designated sandbox directories
  • Use containerization or sandboxing to limit the filesystem impact of potential exploitation
  • Implement runtime application self-protection (RASP) to detect and block path traversal attempts during archive extraction
bash
# Update DJL dependency in Maven pom.xml
# Change version to 0.31.1 or later
# <dependency>
#   <groupId>ai.djl</groupId>
#   <artifactId>api</artifactId>
#   <version>0.31.1</version>
# </dependency>

# Verify current DJL version in your project
mvn dependency:tree | grep -i djl

# Update dependencies
mvn versions:use-latest-releases -Dincludes=ai.djl:*

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechDeep Java Library

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability4.71%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-36
  • Technical References
  • AWS Security Bulletin AWS-2025-003

  • GitHub Release v0.31.1

  • GitHub Security Advisory GHSA-jcrp-x7w3-ffmg
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English