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

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    14.47% (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 ID SNYK-PYTHON-TORCHSERVE-5925613
  • published 29 Sep 2023
  • disclosed 28 Sep 2023
  • credit Oligo Security

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
Expand this section

Snyk

Recommended
7.2 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Changed
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    None
Expand this section

NVD

9.8 critical