Multiple vulnerabilities in PyTorch TorchServe



Published: 2023-10-04 | Updated: 2024-03-22
Risk High
Patch available YES
Number of vulnerabilities 2
CVE-ID CVE-2022-1471
CVE-2023-43654
CWE-ID CWE-502
CWE-918
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Public exploit code for vulnerability #2 is available.
Vulnerable software
Subscribe
TorchServe
Server applications / Other server solutions

Vendor pytorch

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

1) Deserialization of Untrusted Data

EUVDB-ID: #VU70385

Risk: High

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

CVE-ID: CVE-2022-1471

CWE-ID: CWE-502 - Deserialization of Untrusted Data

Exploit availability: Yes

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to insecure input validation when processing serialized data within the SnakeYaml's Constructor() class. A remote attacker can pass specially crafted yaml content to the application and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Install update from vendor's website.

Vulnerable software versions

TorchServe: 0.1.0 - 0.8.1

External links

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, proof of concept for this vulnerability is available.

2) Server-Side Request Forgery (SSRF)

EUVDB-ID: #VU81475

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 - Server-Side Request Forgery (SSRF)

Exploit availability: Yes

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


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.



###SIDEBAR###