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
- NVD entry
- https://github.com/pytorch/serve/security/advisories/GHSA-m2mj-pr4f-h9jp
- https://github.com/pytorch/serve/pull/2634
- https://github.com/pytorch/serve/commit/bfb3d42396727614aef625143b4381e64142f9bb
- https://github.com/pytorch/serve/releases/tag/v0.9.0
Affected or Relevant Artifacts
- Developer: pytorch
- Deployer: pytorch
- Artifact Details:
| Type | Name |
|---|---|
| System | serve |
Impact
AVID Taxonomy Categorization
- Risk domains: Security
- SEP subcategories: S0100: Software Vulnerability
- Lifecycle stages: L06: Deployment
CVSS
| Version | 3.1 |
| Vector String | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| Base Score | 5.3 |
| Base Severity | 🟠 Medium |
| Attack Vector | NETWORK |
| Attack Complexity | 🟢 Low |
| Privileges Required | NONE |
| User Interaction | NONE |
| Scope | UNCHANGED |
| Confidentiality Impact | NONE |
| Integrity Impact | 🟢 Low |
| Availability Impact | NONE |
CWE
| ID | Description |
|---|---|
| CWE-22 | CWE-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