CVE-2025-0851
Deep Java Library path traversal issue
Description
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
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| ai.djl » api | < 0.31.1 | 0.31.1 |
Blast radius
41% of the dependent artifacts (188) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1,165 |
| 2 hops | 1,758 |
| 3 hops | 2,338 |
| 4 hops | 1,088 |
| 5 hops | 1,032 |
| 6 hops | 183 |
Most used dependents
- com.jetbrains.intellij.platform » ide-impl753 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apache.camel.quarkus » camel-quarkus-package-maven-plugin152 usages
- dev.langchain4j » langchain4j-embeddings-all-minilm-l6-v2-q125 usages
- ai.djl.huggingface » tokenizers105 usages
- org.apache.camel » camel-catalog87 usages
- com.jetbrains.intellij.java » java-impl87 usages
- dev.langchain4j » langchain4j-embeddings-all-minilm-l6-v268 usages
- com.jetbrains.intellij.spellchecker » spellchecker64 usages
- com.jetbrains.intellij.platform » test-framework58 usages
- ai.grazie.nlp » nlp-tokenizer-jvm52 usages
- org.springframework.ai » spring-ai-transformers47 usages
- ai.djl.pytorch » pytorch-engine46 usages
- com.jetbrains.intellij.json » json45 usages
- dev.langchain4j » langchain4j-embeddings42 usages
Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2025-0851 | nvd.nist.gov |
| Package | deepjavalibrary/djl | github.com |
| Web | deepjavalibrary/djl advisory GHSA-jcrp-x7w3-ffmg | github.com |
| Web | deepjavalibrary/djl commit 7415cc5 | github.com |
| Web | security/security-bulletins/AWS-2025-003 | aws.amazon.com |
| Web | deepjavalibrary/djl release v0.31.1 | github.com |
