CVE-2025-0851
JSON

9.3critical

Path traversal issue in Deep Java Library

Severity
9.3critical CVSS:4.0 by AMZN
Exploit likelihood
26.4% (higher than 98% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
AMZN
Also known as
GHSA-jcrp-x7w3-ffmg

Description

A path traversal issue in ZipUtils.unzip and TarUtils.untar in Deep Java Library (DJL) on all platforms allows a bad actor to write files to arbitrary locations.

Affected

Product or packageVersionsReported by
AWS DeepJavaLibraryfrom 0.1.0 before 0.31.1CVE List
ai.djl:api (Maven)before 0.31.1GitHub Advisory Database

All scores

AMZN9.3critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
AMZN9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubcritical CVSS:4.0CVSS: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

Classification

CWE-22CWE-36CWE-73

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

A path traversal issue in ZipUtils.unzip and TarUtils.untar in Deep Java Library (DJL) on all platforms allows a bad actor to write files to arbitrary locations.

GitHub Advisory Database

Summary

Deep Java Library (DJL) is an open-source, high-level, engine-agnostic Java framework for deep learning. DJL is designed to be easy to get started with and simple to use for Java developers. DJL provides a native Java development experience and functions like any other regular Java library.

DJL provides utilities for extracting tar and zip model archives that are used when loading models for use with DJL. These utilities were found to contain issues that do not protect against absolute path traversal during the extraction process.

Impact

An issue exists with DJL's untar and unzip functionalities. Specifically, it is possible to create an archive on a Windows system, and when extracted on a MacOS or Linux system, write artifacts outside the intended destination during the extraction process. The reverse is also true for archives created on MacOS/Linux systems and extracted on Windows systems.

Impacted versions: 0.1.0 - 0.31.0

Patches

This issue has been patched in DJL 0.31.1 [1]

Workarounds

Do not use model archive files from sources you do not trust. You should only use model archives from official sources like the DJL Model Zoo, or models that you have created and packaged yourself.

References

If you have any questions or comments about this advisory, we ask that you contact AWS/Amazon Security via our vulnerability reporting page [2] or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.

[1] https://github.com/deepjavalibrary/djl/tree/v0.31.1 [2] https://aws.amazon.com/security/vulnerability-reporting

NVD (es)

Un problema Path Traversal en ZipUtils.unzip y TarUtils.untar en Deep Java librería (DJL) en todas las plataformas permite que un actor malintencionado escriba archivos en ubicaciones arbitrarias.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-0851 changed 2025-10-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-jcrp-x7w3-ffmg changed 2026-09-10CC-BY-4.0
NVDCVE-2025-0851 changed 2026-06-17Public domain