Skip to content
CriticalVulnerability

CVE-2024-35198: TorchServe allowed_urls check bypass that permits unvalidated model downloads

Identifier
CVE-2024-35198
Published
Record updated
View JSON
Affected
  • torchserve < 0.11.0
Fixed in
0.11.0
  • released May 16, 2024, 64 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.8%

Summary

TorchServe's allowed_urls check can be bypassed when a URL contains characters such as "..", and the model is still downloaded into the model store. A downloaded file can then be referenced without a URL on later requests, which defeats the allowed_urls security check. Customers using PyTorch inference Deep Learning Containers through Amazon SageMaker and EKS are not affected.

Mitigation

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. Users are advised to upgrade.