CVE-2024-35199 TorchServe gRPC Port Exposure
TorchServe exposes gRPC ports on all network interfaces by default, allowing unauthorized access to model serving interfaces.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-35199?
CVE-2024-35199 is a high-severity vulnerability in pytorch serve, published on 18 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-668
Which versions are affected by CVE-2024-35199?
3 open source packages ship an affected version, including torchserve. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
torchserve PyPI | From 0.3.0 | 0.11.0 |
torchserve PyPI | From 0.3.0 | 0.11.0 |
torchserve PyPI | From 0.3.0 | 0.11.0 |
Products include Pytorch Torchserve.
How do I fix CVE-2024-35199?
Upgrade torchserve to 0.11.0 or later.
Is CVE-2024-35199 being exploited?
There is no known exploitation of CVE-2024-35199 in the wild and no public exploit code.
Other vulnerabilities in pytorch serve
Sources
Also known as GHSA-hhpg-v63p-wp7w, PYSEC-2026-1971.