GHSA-jcrp-x7w3-ffmg

Suggest an improvement
Source
https://github.com/advisories/GHSA-jcrp-x7w3-ffmg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-jcrp-x7w3-ffmg/GHSA-jcrp-x7w3-ffmg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jcrp-x7w3-ffmg
Aliases
Related
Published
2025-01-29T22:21:33Z
Modified
2026-02-04T04:17:50.902789Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 9.3 (Critical) CVSS_V4 - 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 CVSS Calculator
Summary
Deep Java Library path traversal issue
Details

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

Database specific
{
    "github_reviewed": true,
    "severity": "CRITICAL",
    "nvd_published_at": "2025-01-29T22:15:30Z",
    "cwe_ids": [
        "CWE-22",
        "CWE-36"
    ],
    "github_reviewed_at": "2025-01-29T22:21:33Z"
}
References

Affected packages

Maven / ai.djl:api

Package

Name
ai.djl:api
View open source insights on deps.dev
Purl
pkg:maven/ai.djl/api

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.31.1

Affected versions

0.*
0.2.0
0.2.1
0.3.0
0.4.0
0.4.1
0.5.0
0.6.0
0.7.0
0.8.0
0.9.0
0.10.0
0.11.0
0.12.0
0.13.0
0.14.0
0.15.0
0.16.0
0.17.0
0.18.0
0.19.0
0.20.0
0.21.0
0.22.0
0.22.1
0.23.0
0.24.0
0.25.0
0.26.0
0.27.0
0.28.0
0.29.0
0.30.0
0.31.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-jcrp-x7w3-ffmg/GHSA-jcrp-x7w3-ffmg.json"