# CVE-2024-35198: TorchServe bypass allowed\_urls configuration

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-07-18 · Modified: 2024-08-07
- Aliases: GHSA-wxcx-gg9c-fwp2, PYSEC-2026-554
- Record: https://cvemate.com/vulnerability/CVE-2024-35198 · JSON: https://cvemate.com/vulnerability/CVE-2024-35198/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.792%, percentile 57.669%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- PyPI torchserve (PyPI): \< 0.11.0
- pytorch serve: ≥ 0.4.2, \< 0.11.0
- pytorch torchserve: ≥ 0.4.2, \< 0.11.0

## References

- <https://github.com/pytorch/serve/security/advisories/GHSA-wxcx-gg9c-fwp2>
- <https://github.com/pytorch/serve/pull/3082>
- <https://github.com/pytorch/serve/releases/tag/v0.11.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-35198>
- <https://github.com/pytorch/serve/commit/cdba0fd449c2fd23dcf37c54c0784035541d5114>
- <https://github.com/pytorch/serve>
- <https://pypi.org/project/torchserve>
- <https://github.com/advisories/GHSA-wxcx-gg9c-fwp2>

---

Data as of 2026-12-05T07:21:31.426Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
