Server-side Request Forgery (SSRF) Affecting torchserve package, versions [,0.8.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
10.78% (96th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-TORCHSERVE-5925613
  • published29 Sept 2023
  • disclosed28 Sept 2023
  • creditOligo Security

Introduced: 28 Sep 2023

CVE-2023-43654  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade torchserve to version 0.8.2 or higher.

Overview

torchserve is a TorchServe is a tool for serving neural net models for inference

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) due to the lack of proper input validation in the default configuration. An attacker can invoke remote HTTP download requests and write files to the disk, potentially compromising the integrity of the system and sensitive data.

Note

This is only exploitable if the default value for allowed_urls is used and the user specifies the model URL to be used. An attacker can load the model of their choice from any URL they wish to use. The impact of this vulnerability may vary based on specific configuration.

CVSS Scores

version 3.1