CVE-2023-48299Pytorch Torchserve
Medium 5.3 No auth needed
Follow: this CVE · Pytorch · Pytorch Torchserve We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 52
- Auth required
- No
- Published
- Nov 21, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Torchserve.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | torchserve |
≥ 0.1.0 < 0.9.0 |
0.9.0 |
pip install "torchserve>=0.9.0" |
| PyPI | torchserve |
≥ 0.1.0 < 0.9.0 |
0.9.0 |
pip install "torchserve>=0.9.0" |
Per OSV / GitHub Advisories (GHSA-m2mj-pr4f-h9jp, PYSEC-2026-1972). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pytorch | torchserve | ≥ 0.1.0 < 0.9.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Release Notes
- github.com Patch Vendor Advisory