PyTorch TorchServe SSRF (CVE-2023-43654)

critical Nessus Plugin ID 184080

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.

Solution

Upgrade to the TorchServe 0.8.2 or later.

See Also

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

Plugin Details

Severity: Critical

ID: 184080

File Name: pytorch_CVE-2023-43654.nbin

Version: 1.10

Type: remote

Family: CGI abuses

Published: 10/31/2023

Updated: 7/17/2024

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

Exploited by Nessus: true

Patch Publication Date: 9/28/2023

Vulnerability Publication Date: 9/28/2023

Reference Information

CVE: CVE-2023-43654