CVE-2025-0851 — Vulnerability in ai.djl:api — CVE Details
Deep Java Library path traversal issue
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (2.45%). Schedule for your next planned update.
Does your project use an affected ai.djl:api version?
Paste your pom.xml to check it for CVE-2025-0851 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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
Advisory Timeline
- First published January 29, 2025 (666 days ago).
- Last revised September 10, 2026 — 588 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 0.31.1 for ai.djl:api -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| ai.djl:api Maven · Affected: 0.10.0, 0.11.0, 0.12.0, 0.13.0 (+29 more) | 0.31.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-22Path TraversalMITRE
- CWE-36
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/deepjavalibrary/djl/security/advisories/GHSA-jcrp-x7w3-ffmgWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-0851ADVISORY
- https://github.com/deepjavalibrary/djl/commit/7415cc5f72aae69ea9716a5e4f709af03a77a619WEB
- https://aws.amazon.com/security/security-bulletins/AWS-2025-003WEB
- https://github.com/deepjavalibrary/djlPACKAGE
- https://github.com/deepjavalibrary/djl/releases/tag/v0.31.1WEB
Frequently Asked Questions
- What is CVE-2025-0851?
- Deep Java Library path traversal issue. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2025-0851?
- CVE-2025-0851 affects ai.djl:api. It has a 2.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-0851 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top quartile of EPSS-scored vulnerabilities — 85.1% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-107726CRITICAL
Hazelcast allows arbitrary member memory access by low-privileged client
- CVE-2026-107282CRITICAL
AsyncHttpClient: Replay to a different host sends the original host request and credentials to the new host
- CVE-2024-37902CRITICAL
DeepJavaLibrary API absolute path traversal