Goal Reached Thanks to every supporter โ€” we hit 100%!

Goal: 1000 CNY ยท Raised: 1336 CNY

100%

CVE-2025-0851 โ€” AI Deep Analysis Summary

CVSS 9.8 ยท Critical

Q1What is this vulnerability? (Essence + Consequences)

๐Ÿšจ **Essence**: Path Traversal in Deep Java Library (DJL) allows writing files to arbitrary locations. ๐Ÿ’ฅ **Consequences**: Full system compromise, data corruption, or RCE via malicious model archives.

Q2Root Cause? (CWE/Flaw)

๐Ÿ›ก๏ธ **Root Cause**: CWE-36 (Path Traversal). ๐Ÿ› **Flaw**: `ZipUtils.unzip` and `TarUtils.untar` fail to sanitize filenames, allowing `../` sequences to escape the target directory.

Q3Who is affected? (Versions/Components)

๐Ÿ‘ฅ **Affected**: AWS Deep Java Library (DJL). ๐Ÿ“ฆ **Versions**: All versions **prior to 0.31.1**. ๐Ÿงฉ **Component**: Model loading utilities for ZIP/TAR archives.

Q4What can hackers do? (Privileges/Data)

๐Ÿ’€ **Attacker Actions**: Write arbitrary files to the file system (e.g., `C:\Windows\System32\`). ๐Ÿ“Š **Impact**: High Confidentiality, Integrity, and Availability loss. Potential for Remote Code Execution (RCE).

Q5Is exploitation threshold high? (Auth/Config)

โšก **Threshold**: LOW. ๐Ÿ”“ **Auth**: None required (PR:N). ๐ŸŒ **Vector**: Network (AV:N). ๐Ÿ–ฑ๏ธ **UI**: None required (UI:N). Simply loading a malicious model triggers it.

Q6Is there a public Exp? (PoC/Wild Exploitation)

๐Ÿ”“ **Public Exploit**: YES. ๐Ÿ“‚ **PoC**: Available on GitHub (skrkcb2/CVE-2025-0851). ๐Ÿงช **Proof**: Successfully created files in `System32` using crafted JAR/TAR files.

Q7How to self-check? (Features/Scanning)

๐Ÿ” **Self-Check**: Scan for DJL versions < 0.31.1. ๐Ÿ“ฆ **Dependency Audit**: Check `pom.xml` or `build.gradle` for `ai.djl` dependencies. ๐Ÿšฉ **Flag**: Look for usage of `ZipUtils` or `TarUtils` without validation.

Q8Is it fixed officially? (Patch/Mitigation)

โœ… **Fixed**: YES. ๐Ÿ“… **Patch**: Released in **v0.31.1**. ๐Ÿ”— **Source**: GitHub releases and AWS Security Bulletin AWS-2025-003.

Q9What if no patch? (Workaround)

๐Ÿ›‘ **Workaround**: If unpatched, **disable automatic model extraction** from untrusted sources. ๐Ÿšซ **Mitigation**: Validate archive contents manually before loading.โ€ฆ

Q10Is it urgent? (Priority Suggestion)

๐Ÿ”ฅ **Urgency**: CRITICAL. ๐Ÿšจ **Priority**: P1. โฑ๏ธ **Action**: Patch immediately. CVSS Score is **9.8** (Critical). Wild exploits exist. Do not delay.