PyTorch TorchServe < 0.8.2 SSRF

critical Nessus Plugin ID 184081

Synopsis

The remote host contains a machine learning library that is affected by a Server Side Request Forgery vulnerability.

Description

The remote host contains a torchserve version that is prior to 0.8.2. It is, therefore, affected by a Server Side Request Forgery vulnerability. 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 remote attacker can exploit this and load the malicious model of their choice from any URL.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to the TorchServe 0.8.2 or later.

See Also

http://www.nessus.org/u?2afbafcc

Plugin Details

Severity: Critical

ID: 184081

File Name: pytorch_serve_0.8.2.nasl

Version: 1.1

Type: remote

Family: Misc.

Published: 10/31/2023

Updated: 11/1/2023

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2023-43654

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:pytorch:torchserve

Required KB Items: installed_sw/TorchServe

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 9/28/2023

Vulnerability Publication Date: 9/28/2023

Reference Information

CVE: CVE-2023-43654