CVE-2024-35199Pytorch Torchserve
High 8.2 No auth needed
Follow: this CVE · Pytorch · Pytorch Torchserve We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.2
- EPSS
- 1.1% probability of exploitation in 30 days · percentile 64
- Auth required
- No
- Published
- Jul 19, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-668
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
What happens
TorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production. In affected versions the two gRPC ports 7070 and 7071, are not bound to [localhost](http://localhost/) by default, so when TorchServe is launched, these two interfaces are bound to all interfaces. Customers using PyTorch inference Deep Learning Containers (DLC) through Amazon SageMaker and EKS are not affected. This issue in TorchServe has been fixed in PR #3083. 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.
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.3.0 < 0.11.0 |
0.11.0 |
pip install "torchserve>=0.11.0" |
| PyPI | torchserve |
≥ 0.3.0 < 0.11.0 |
0.11.0 |
pip install "torchserve>=0.11.0" |
Per OSV / GitHub Advisories (GHSA-hhpg-v63p-wp7w, PYSEC-2026-1971). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pytorch | torchserve | ≥ 0.3.0 < 0.11.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Release Notes
- github.com Patch Third Party Advisory