Live threats

All CVEs / Pytorch

CVE-2023-48299Pytorch Torchserve

Medium 5.3 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Torchserve.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
pytorchtorchserve≥ 0.1.0 < 0.9.0

Official sources

References

Links published by the sources. Open them with care.