CVE-2024-35198: TorchServe bypass allowed_urls configuration
Vulnerability summary
CVE-2024-35198 is a critical (CVSS 9.8) vulnerability in pytorch serve. EPSS estimates a 0.79% chance of exploitation in the next 30 days, higher than 57.6% of scored vulnerabilities.
Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 18-07-2024PublishedVulnerability first disclosed.
- 07-08-2024Last modifiedVulnerability information updated.
Description
TorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production. TorchServe 's check on allowed_urls configuration can be by-passed if the URL contains characters such as ".." but it does not prevent the model from being downloaded into the model store. Once a file is downloaded, it can be referenced without providing a URL the second time, which effectively bypasses the allowed_urls security check. Customers using PyTorch inference Deep Learning Containers (DLC) through Amazon SageMaker and EKS are not affected. 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 to address this vulnerability. Users are advised to upgrade. There are no known workarounds for this vulnerability.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · PypiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.79%
Chance of exploitation in the next 30 days
Percentile
58%
Versus all other CVEs
30-day change
Decrease -0.01 pp
From 0.80% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Pytorch2 products
- serve≥ 0.4.2, < 0.11.0
- torchserve≥ 0.4.2, < 0.11.0
PyPI1 product
- torchserve< 0.11.0
2 vendors · 3 products
References
8 links- github.com/pytorch/serve/security/advisories/GHSA-wxcx-gg9c-fwp2X Refsource CONFIRMWEBThird Party Advisory
- github.com/pytorch/servePACKAGE
- pypi.org/project/torchservePACKAGE