Intel

AIKIDO-2025-10211

zip-lib is vulnerable to Zip Slip

Zip Slip Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

75

High Risk

This Affects:

JSzip-lib
0.1.0 - 1.0.5
Fixed in 1.1.0

TL;DR

Affected versions of this package are vulnerable to a directory traversal or zip slip issue during ZIP extraction. When extracting multiple ZIP files, an attacker can bypass the isOutsideTargetFolder check by first extracting a ZIP file containing a symlink to an arbitrary directory (e.g., /tmp/) and then extracting another ZIP file with files or symlinks targeting that location. This allows files to be written outside the intended extraction directory, potentially leading to unauthorized file writes.

Who does this affect?

You are affected if you are use a vulnerable version of torchserve.

Background info

zip-lib is vulnerable to Zip Slip in versions 0.1.0 - 1.0.5.

How to fix this

Upgrade zip-lib to the patch version.