INCIDENT MAP

Browse / Unsafe Model Loading and Supply Chain / CVE-2024-37902

DeepJavaLibrary API absolute path traversal

CVE-2024-37902 ยท 2024-06-17 critical

Class
Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
Technique
Path traversal and file access
Affected
ai.djl:api (Maven)
Gets past
Path restriction
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS
0.8% chance of exploitation in 30 days

How it works, in short

DJL extracts archive entries with absolute paths to their literal location, so a malicious model artifact can overwrite system files. (Our summary, written by a model. The source text is below.)

Details

Summary

DeepJavaLibrary(DJL) versions 0.1.0 through 0.27.0 do not prevent absolute path archived artifacts from inserting archived files directly into the system, overwriting system files. This is fixed in DJL 0.28.0 and patched in DJL Large Model Inference containers 0.27.0.

Impacted versions: 0.1.0 through 0.27.0

Patches

Patched Deep Learning Containers:
v1.1-djl-0.27.0-inf-cpu-full
v1.4-djl-0.27.0-inf-ds-0.12.6
v1.4-djl-0.27.0-inf-trt-0.8.0
v1.3-djl-0.27.0-inf-neuronx-sdk2.18.1

Patched Library:
v0.28.0

References

Source: GitHub Advisory Database, used under CC BY 4.0.