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

CVE-2023-43654: Server-Side Request Forgery (SSRF)

October 2, 2023

TorchServe is a tool for serving and scaling PyTorch models in production. TorchServe default configuration lacks proper input validation, enabling third parties to invoke remote HTTP download requests and write files to the disk. This issue could be taken advantage of to compromise the integrity of the system and sensitive data. This issue is present in versions 0.1.0 to 0.8.1. A user is able to load the model of their choice from any URL that they would like to use. The user of TorchServe is responsible for configuring both the allowed_urls and specifying the model URL to be used. A pull request to warn the user when the default value for allowed_urls is used has been merged in PR #2534. TorchServe release 0.8.2 includes this change. Users are advised to upgrade. There are no known workarounds for this issue.

References

  • github.com/advisories/GHSA-8fxr-qfr9-p34w
  • github.com/pytorch/serve/pull/2534
  • github.com/pytorch/serve/releases/tag/v0.8.2
  • github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w
  • nvd.nist.gov/vuln/detail/CVE-2023-43654

Code Behaviors & Features

Detect and mitigate CVE-2023-43654 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 starting from 0.1.0 before 0.8.2

Fixed versions

  • 0.8.2

Solution

Upgrade to version 0.8.2 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-918: Server-Side Request Forgery (SSRF)

Source file

pypi/torchserve/CVE-2023-43654.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:16:08 +0000.