CVE-2025-0851
This vulnerability occurs in the Deep Java Library (an open-source framework for Java deep learning) when providing utilities for extracting tar and zip model archives used for loading models. A File Traversal vulnerability arises in the untar and unzip functions.
Details: When creating an archive on a Linux system and extracting it on a Windows system, artifacts may be written outside the intended target directory that the extraction process is concerned with. The opposite is also applicable.
Test method: Place the two files test.jar and tar in the C:/ path and execute via cmd (administrator rights) (java -jar test.jar / java version: 17.0.9) -> Execution result creates a TEST file at C:\Windows\System32\config\TEST

Brief explanation:
dest.resolve(name).toAbsolutePath(); In the statement, when .toAbsolutePath() specifies an absolute path in name, it ignores dest.resolve(name) and =>
returns only name(C:\Windows\System32\config\TEST) =>
When creating a folder on Linux, it is possible to input \ in the folder name, so a folder named C:\Windows\System32\config\ is created and then the TEST file is created, tar archive or Zip
Update details:
