CVE-2025-0851: Deep Java Library path traversal issue
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.81506%
CWE
Published
1/29/2025
Updated
1/30/2025
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
ai.djl:api | maven | < 0.31.1 | 0.31.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper path validation in archive extraction utilities. The commit diff shows both TarUtils.untar
and ZipUtils.unzip
were modified to replace their flawed validation logic with a new method (validateArchiveEntry
) that checks path normalization and containment within the destination. The original code in these functions used insufficient checks (e.g., simple '..' detection and separator stripping), which failed to prevent absolute path traversal when archives were created on one OS and extracted on another. The CWE-22/CWE-36 alignment and the explicit patch targeting these functions confirm their vulnerability.