TorchServe bypass allowed_urls configuration
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| pytorch | serve | 0.4.2 to before 0.11.0 | 0.11.0 | Patch available | CNA |
| — | torchserve (PyPI) | before 0.11.0 | 0.11.0 | Patch available | GHSA-wxcx-gg9c-fwp2 |
- serve Vendorpytorch Affected 0.4.2 to before 0.11.0 Fixed in 0.11.0 Patch available CNA
- torchserve (PyPI) Vendor— Affected before 0.11.0 Fixed in 0.11.0 Patch available GHSA-wxcx-gg9c-fwp2
Remediation
- Fix · CNA serve (pytorch) Fixed in 0.11.0
- Fix · GHSA-wxcx-gg9c-fwp2 torchserve (PyPI) Fixed in 0.11.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-35198
- 2026-10-03 Alias added: GHSA-wxcx-gg9c-fwp2
References
Advisory 2
More pytorch Torchserve vulnerabilities
- TI-2023-23379 TorchServe Server-Side Request Forgery CVSS 3.1CRITICAL 10.0
- TI-2024-23271 TorchServe gRPC Port Exposure CVSS 3.1HIGH 8.2
- TI-2023-26162 TorchServe ZipSlip CVSS 3.1MEDIUM 5.3
Sources
- CVE-2024-35198 · CVE Program
- CVE-2024-35198 · NVD
- FIRST EPSS
- GHSA-wxcx-gg9c-fwp2 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences