CVE-2023-48299
TorchServe ZipSlip Vulnerability
Description
TorchServe is a tool for serving and scaling PyTorch models in production. Starting in version 0.1.0 and prior to version 0.9.0, using the model/workflow management API, there is a chance of uploading potentially harmful archives that contain files that are extracted to any location on the filesystem that is within the process permissions. Leveraging this issue could aid third-party actors in hiding harmful code in open-source/public models, which can be downloaded from the internet, and take advantage of machines running Torchserve. The ZipSlip issue in TorchServe has been fixed by validating the paths of files contained within a zip archive before extracting them. TorchServe release 0.9.0 includes fixes to address the ZipSlip vulnerability.
INFO
Published Date :
Nov. 21, 2023, 9:15 p.m.
Last Modified :
Nov. 21, 2024, 8:31 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
1.4
Exploitability Score :
3.9
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-48299
.
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).
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-48299
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-48299
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 https://github.com/pytorch/serve/commit/bfb3d42396727614aef625143b4381e64142f9bb Added Reference https://github.com/pytorch/serve/pull/2634 Added Reference https://github.com/pytorch/serve/releases/tag/v0.9.0 Added Reference https://github.com/pytorch/serve/security/advisories/GHSA-m2mj-pr4f-h9jp -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Nov. 29, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Changed Reference Type https://github.com/pytorch/serve/commit/bfb3d42396727614aef625143b4381e64142f9bb No Types Assigned https://github.com/pytorch/serve/commit/bfb3d42396727614aef625143b4381e64142f9bb Patch Changed Reference Type https://github.com/pytorch/serve/pull/2634 No Types Assigned https://github.com/pytorch/serve/pull/2634 Patch Changed Reference Type https://github.com/pytorch/serve/releases/tag/v0.9.0 No Types Assigned https://github.com/pytorch/serve/releases/tag/v0.9.0 Release Notes Changed Reference Type https://github.com/pytorch/serve/security/advisories/GHSA-m2mj-pr4f-h9jp No Types Assigned https://github.com/pytorch/serve/security/advisories/GHSA-m2mj-pr4f-h9jp Patch, Vendor Advisory Added CPE Configuration OR *cpe:2.3:a:pytorch:torchserve:*:*:*:*:*:*:*:* versions from (including) 0.1.0 up to (excluding) 0.9.0 -
CVE Received by [email protected]
Nov. 21, 2023
Action Type Old Value New Value Added Description TorchServe is a tool for serving and scaling PyTorch models in production. Starting in version 0.1.0 and prior to version 0.9.0, using the model/workflow management API, there is a chance of uploading potentially harmful archives that contain files that are extracted to any location on the filesystem that is within the process permissions. Leveraging this issue could aid third-party actors in hiding harmful code in open-source/public models, which can be downloaded from the internet, and take advantage of machines running Torchserve. The ZipSlip issue in TorchServe has been fixed by validating the paths of files contained within a zip archive before extracting them. TorchServe release 0.9.0 includes fixes to address the ZipSlip vulnerability. Added Reference GitHub, Inc. https://github.com/pytorch/serve/security/advisories/GHSA-m2mj-pr4f-h9jp [No types assigned] Added Reference GitHub, Inc. https://github.com/pytorch/serve/pull/2634 [No types assigned] Added Reference GitHub, Inc. https://github.com/pytorch/serve/commit/bfb3d42396727614aef625143b4381e64142f9bb [No types assigned] Added Reference GitHub, Inc. https://github.com/pytorch/serve/releases/tag/v0.9.0 [No types assigned] Added CWE GitHub, Inc. CWE-22 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
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-48299
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-48299
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.59 }} 0.13%
score
0.67813
percentile