Vulnerability · Published Nov 21, 2023 · Assigned by GitHub_M

CVE-2023-48299TorchServe ZipSlip

Medium 5.3

In plain English

A medium-severity path traversal in serve from pytorch. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.7%top 47.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

TorchServe is a tool for serving and scaling PyTorch models in production. Starting in version 0.1.0 and prior to version 0.9.0, using the model/workflow management API, there is a chance of uploading potentially harmful archives that contain files that are extracted to any location on the filesystem that is within the process permissions. Leveraging this issue could aid third-party actors in hiding harmful code in open-source/public models, which can be downloaded from the internet, and take advantage of machines running Torchserve. The ZipSlip issue in TorchServe has been fixed by validating the paths of files contained within a zip archive before extracting them. TorchServe release 0.9.0 includes fixes to address the ZipSlip vulnerability.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPItorchserve0.9.0GHSA-m2mj-pr4f-h9jp
PyPItorchserve0.9.0PYSEC-2026-1972

Affected products (as reported)

VendorProductVersions
pytorch serve >= 0.1.0, < 0.9.0

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References