#VU81475 Server-Side Request Forgery (SSRF) in TorchServe


Published: 2023-10-12 | Updated: 2024-03-22

Vulnerability identifier: #VU81475

Vulnerability risk: High

CVSSv3.1: 9.3 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N/E:F/RL:O/RC:C]

CVE-ID: CVE-2023-43654

CWE-ID: CWE-918

Exploitation vector: Network

Exploit availability: Yes

Vulnerable software:
TorchServe
Server applications / Other server solutions

Vendor: pytorch

Description

The disclosed vulnerability allows a remote attacker to perform SSRF attacks.

The vulnerability exists due to insufficient validation of user-supplied input. A remote attacker can send a specially crafted HTTP request and trick the application to initiate requests to arbitrary systems.

Successful exploitation of this vulnerability may allow a remote attacker to compromise the affected system by invoking remote HTTP download request and writing files to the system.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

TorchServe: 0.1.0 - 0.8.1


External links
http://github.com/pytorch/serve/releases/tag/v0.8.2
http://github.com/pytorch/serve/pull/2534
http://github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w
http://www.oligo.security/blog/shelltorch-torchserve-ssrf-vulnerability-cve-2023-43654


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, a fully functional exploit for this vulnerability is available.


Latest bulletins with this vulnerability