CVE-2024-35198 json
TorchServe bypass allowed_urls configuration
published 2024-07-18 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-2442 , GHSA-wxcx-gg9c-fwp2 , PYSEC-2026-554
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi torchserve 0.11.0
- pytorch torchserve 0.11.0
- github.com/pytorch/serve@cdba0fd commit
- github.com/pytorch/serve#3082 pull request
- github.com/pytorch/serve/releases/tag/v0.11.0 release
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.80% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | torchserve | <0.11.0 |
0.11.0 |
Affected products
- pytorch serve
Classification
References
-
github.com
/pytorch/serve/pull/3082
web, patch
-
github.com
/pytorch/serve/commit/cdba0fd449c2fd23dcf37c54c0784035541d5114
web
-
github.com
/pytorch/serve/security/advisories/GHSA-wxcx-gg9c-fwp2
web, third-party-advisory
-
github.com
/pytorch/serve/releases/tag/v0.11.0
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2024-35198
advisory
-
github.com
/pytorch/serve
package
-
pypi.org
/project/torchserve
package
-
github.com
/advisories/GHSA-wxcx-gg9c-fwp2
advisory
Sources
- CVE List CVE-2024-35198
- GitHub Advisory GHSA-wxcx-gg9c-fwp2
- NVD CVE-2024-35198
- OSV PYSEC-2026-554
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.