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. Learn more about Dependency Scanning →

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 Wed, 14 May 2025 12:14:41 +0000.