# CVE-2024-35198: TorchServe bypass allowed_urls configuration

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.79%, higher than 57% of CVEs (2026-12-01)
- Published: 2024-07-18T22:03:30.000Z
- Modified: 2026-09-10T03:50:17.056Z
- Also known as: GHSA-wxcx-gg9c-fwp2, PYSEC-2026-554
- Weaknesses: CWE-22, CWE-706
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- pytorch serve: >= 0.4.2, < 0.11.0
- torchserve (PyPI): before 0.11.0
- pytorch torchserve: from 0.4.2 before 0.11.0

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: 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`

## References

- <https://github.com/pytorch/serve/security/advisories/GHSA-wxcx-gg9c-fwp2> (third-party-advisory, web)
- <https://github.com/pytorch/serve/pull/3082> (patch, web)
- <https://github.com/pytorch/serve/releases/tag/v0.11.0> (release-notes, 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)

## Sources

- CVE List: [CVE-2024-35198](https://www.cve.org/CVERecord?id=CVE-2024-35198), CVE Terms of Use, modified 2024-08-07
- GitHub Advisory Database: [GHSA-wxcx-gg9c-fwp2](https://github.com/advisories/GHSA-wxcx-gg9c-fwp2), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-35198](https://nvd.nist.gov/vuln/detail/CVE-2024-35198), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-554](https://osv.dev/vulnerability/PYSEC-2026-554), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2024-35198 · Whole record: https://cve.day/CVE-2024-35198.json · Rebuilt by cve.day 2026-11-25T22:58:43.052Z
