CVE-2023-43654
Apache TorchServe Unvalidated HTTP Request"
Description
TorchServe is a tool for serving and scaling PyTorch models in production. 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 user is able to load the model of their choice from any URL that they would like to use. The user of TorchServe is responsible for configuring both the allowed_urls and specifying the model URL to be used. A pull request to warn the user when the default value for allowed_urls is used has been merged in PR #2534. TorchServe release 0.8.2 includes this change. Users are advised to upgrade. There are no known workarounds for this issue.
INFO
Published Date :
Sept. 28, 2023, 11:15 p.m.
Last Modified :
Nov. 21, 2024, 8:24 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
6.0
Exploitability Score :
3.9
Public PoC/Exploit Available at Github
CVE-2023-43654 has a 4 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-43654
.
URL | Resource |
---|---|
http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html | Exploit Third Party Advisory VDB Entry |
https://github.com/pytorch/serve/pull/2534 | Issue Tracking |
https://github.com/pytorch/serve/releases/tag/v0.8.2 | Release Notes |
https://github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w | Vendor Advisory |
http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html | Exploit Third Party Advisory VDB Entry |
https://github.com/pytorch/serve/pull/2534 | Issue Tracking |
https://github.com/pytorch/serve/releases/tag/v0.8.2 | Release Notes |
https://github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w | Vendor Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Demo for CVE-2023-43654 - Remote Code Execution in PyTorch TorchServe
A tool that checks if a TorchServe instance is vulnerable to CVE-2023-43654
Shell
SecDB - Security Feeds
cve security-feeds vulnerability
https://twitch.tv/mdisec
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-43654
vulnerability anywhere in the article.

-
Help Net Security
“0.0.0.0-Day” vulnerability affects Chrome, Safari and Firefox
A “0.0.0.0-Day” vulnerability affecting Chrome, Safari and Firefox can be – and has been – exploited by attackers to gain access to services on internal networks, Oligo Security researchers have revea ... Read more
The following table lists the changes that have been made to the
CVE-2023-43654
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html Added Reference https://github.com/pytorch/serve/pull/2534 Added Reference https://github.com/pytorch/serve/releases/tag/v0.8.2 Added Reference https://github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Modified Analysis by [email protected]
Oct. 31, 2023
Action Type Old Value New Value Removed CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html No Types Assigned http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html Exploit, Third Party Advisory, VDB Entry -
CVE Modified by [email protected]
Oct. 13, 2023
Action Type Old Value New Value Added Reference http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html [No Types Assigned] -
Reanalysis by [email protected]
Oct. 12, 2023
Action Type Old Value New Value Removed CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N -
Initial Analysis by [email protected]
Oct. 02, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/pytorch/serve/pull/2534 No Types Assigned https://github.com/pytorch/serve/pull/2534 Issue Tracking Changed Reference Type https://github.com/pytorch/serve/releases/tag/v0.8.2 No Types Assigned https://github.com/pytorch/serve/releases/tag/v0.8.2 Release Notes Changed Reference Type https://github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w No Types Assigned https://github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w Vendor Advisory Added CPE Configuration OR *cpe:2.3:a:pytorch:torchserve:*:*:*:*:*:*:*:* versions from (including) 0.1.0 up to (excluding) 0.8.2
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-43654
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-43654
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
89.06 }} 2.80%
score
0.99506
percentile