Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. torchserve
  4. ›
  5. CVE-2024-35198

CVE-2024-35198: TorchServe vulnerable to bypass of allowed_urls configuration

July 18, 2024

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.

References

  • github.com/advisories/GHSA-wxcx-gg9c-fwp2
  • github.com/pytorch/serve
  • github.com/pytorch/serve/commit/cdba0fd449c2fd23dcf37c54c0784035541d5114
  • github.com/pytorch/serve/pull/3082
  • github.com/pytorch/serve/releases/tag/v0.11.0
  • github.com/pytorch/serve/security/advisories/GHSA-wxcx-gg9c-fwp2
  • nvd.nist.gov/vuln/detail/CVE-2024-35198

Code Behaviors & Features

Detect and mitigate CVE-2024-35198 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.11.0

Fixed versions

  • 0.11.0

Solution

Upgrade to version 0.11.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/torchserve/CVE-2024-35198.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:41 +0000.