CVE-2024-35198
CRITICAL 9.8CVSS 3.1TorchServe vulnerable to bypass of allowed_urls configuration
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.
- Published
- 19 Jul 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22CWE-706
- Also known as
- GHSA-wxcx-gg9c-fwp2PYSEC-2026-554
- Sources
- NVDJSONOSV GHSA-wxcx-gg9c-fwp2JSONOSV PYSEC-2026-554JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pytorch | torchservecpe:2.3:a:pytorch:torchserve:*:*:*:*:*:*:*:* |
>= 0.4.2, < 0.11.0 | 0.11.0 |
| OSV | PyPI | torchserve | < 0.11.0 | 0.11.0 |
References
- https://github.com/pytorch/serve/pull/3082 · Patch, WEB
- https://github.com/pytorch/serve/releases/tag/v0.11.0 · Release Notes, WEB
- https://github.com/pytorch/serve/security/advisories/GHSA-wxcx-gg9c-fwp2 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-35198 · ADVISORY
- https://github.com/pytorch/serve/commit/cdba0fd449c2fd23dcf37c54c0784035541d5114 · WEB
- https://github.com/pytorch/serve · PACKAGE
- https://pypi.org/project/torchserve · PACKAGE
- https://github.com/advisories/GHSA-wxcx-gg9c-fwp2 · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 19 Jul 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 18 Jul 2024)