CVE-2024-35199: TorchServe gRPC Port Exposure

Published Jul 18, 2024
·
Updated

Impact The two gRPC ports 7070 and 7071, are not bound to 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.

Patches This issue in TorchServe has been fixed in #3083.

TorchServe release 0.11.0 includes the fix to address this vulnerability.

References #3083 TorchServe release v0.11.0

Thank Kroll Cyber Risk for for responsibly disclosing this issue.

If you have any questions or comments about this advisory, we ask that you contact AWS Security via our vulnerability reporting page or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.

Other sources

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 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.

MITRE

Affected Software

2 affected componentsFixes available
pip/torchserve>=0.3.0<0.11.0
0.11.0
PyTorch Torchserve>=0.3.0<0.11.0

Event History

Jul 18, 2024
Advisory Published
via GitHub·10:06 PM
CVE Published
via MITRE·10:40 PM
Data Sourced
via MITRE·10:40 PM
DescriptionSeverityWeakness
Jul 19, 2024
Data Sourced
via NVD·02:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 AM
RemedyAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-35199?

CVE-2024-35199 has a medium severity rating due to potential exposure of gRPC ports to all interfaces.

2

How do I fix CVE-2024-35199?

To mitigate CVE-2024-35199, update torchserve to version 0.11.0 or later.

3

What software is affected by CVE-2024-35199?

CVE-2024-35199 affects torchserve versions between 0.3.0 and 0.11.0.

4

What are the implications of CVE-2024-35199 for users?

Users may face security risks as the gRPC ports are not restricted to localhost by default.

5

How does CVE-2024-35199 impact PyTorch inference on clouds?

CVE-2024-35199 may allow unauthorized access to services using PyTorch inference on platforms like Amazon SageMaker and EKS if not properly secured.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203