Live threats

All CVEs / Pytorch

CVE-2024-35198Pytorch Torchserve

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.3%
probability of exploitation in 30 days · percentile 71
Auth required
No
Published
Jul 19, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-706
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

TorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production. TorchServe 's check on allowed_urls configuration can be by-passed if the URL contains characters such as ".." but it does not prevent the model from being downloaded into the model store. Once a file is downloaded, it can be referenced without providing a URL the second time, which effectively bypasses the allowed_urls security check. Customers using PyTorch inference Deep Learning Containers (DLC) through Amazon SageMaker and EKS are not affected. This issue in TorchServe has been fixed by validating the URL without characters such as ".." before downloading see PR #3082. TorchServe release 0.11.0 includes the fix to address this vulnerability. Users are advised to upgrade. There are no known workarounds for this 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.11.0 0.11.0 pip install "torchserve>=0.11.0"
PyPI torchserve < 0.11.0 0.11.0 pip install "torchserve>=0.11.0"

Per OSV / GitHub Advisories (GHSA-wxcx-gg9c-fwp2, PYSEC-2026-554). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pytorchtorchserve≥ 0.4.2 < 0.11.0

Official sources

References

Links published by the sources. Open them with care.