Home » Database

AVID-2026-R1294

Description

TorchServe ZipSlip (CVE-2023-48299)

Details

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.

Reason for inclusion in AVID: CVE-2023-48299 (TorchServe ZipSlip) is a software vulnerability in TorchServe that allows path traversal when extracting uploaded model archives, enabling potential manipulation of AI model deployment artifacts. This directly concerns AI deployment frameworks used in serving general-purpose AI systems, i.e., a software supply chain component. The report provides explicit CVE details, an advisory, and release fixes, establishing clear evidence of the vulnerability and remediation.

References

Affected or Relevant Artifacts

  • Developer: pytorch
  • Deployer: pytorch
  • Artifact Details:
TypeName
Systemserve

Impact

AVID Taxonomy Categorization

  • Risk domains: Security
  • SEP subcategories: S0100: Software Vulnerability
  • Lifecycle stages: L06: Deployment

CVSS

Version3.1
Vector StringCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Base Score5.3
Base Severity🟠 Medium
Attack VectorNETWORK
Attack Complexity🟢 Low
Privileges RequiredNONE
User InteractionNONE
ScopeUNCHANGED
Confidentiality ImpactNONE
Integrity Impact🟢 Low
Availability ImpactNONE

CWE

IDDescription
CWE-22CWE-22: Improper Limitation of a Pathname to a Restricted Directory (‘Path Traversal’)

Other information

  • Report Type: Advisory
  • Credits:
  • Date Reported: 2023-11-21
  • Version: 0.3.3
  • AVID Entry