CVE-2022-23530
GuardDog CLI Tool Arbitrary File Write Vulnerability
Description
GuardDog is a CLI tool to identify malicious PyPI packages. Versions prior to v0.1.8 are vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package. Extracting files using shutil.unpack_archive() from a potentially malicious tarball without validating that the destination file path is within the intended destination directory can cause files outside the destination directory to be overwritten. This issue is patched in version 0.1.8. Potential workarounds include using a safer module, like zipfile, and validating the location of the extracted files and discarding those with malicious paths.
INFO
Published Date :
Dec. 16, 2022, 11:15 p.m.
Last Modified :
Nov. 21, 2024, 6:48 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.6
Exploitability Score :
2.8
Public PoC/Exploit Available at Github
CVE-2022-23530 has a 2 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-2022-23530
.
URL | Resource |
---|---|
https://github.com/DataDog/guarddog/blob/a1d064ceb09d39bb28deb6972bc0a278756ea91f/guarddog/scanners/package_scanner.py#L153..158 | Exploit Third Party Advisory |
https://github.com/DataDog/guarddog/commit/37c7d0767ba28f4df46117d478f97652594c491c | Patch Third Party Advisory |
https://github.com/DataDog/guarddog/security/advisories/GHSA-78m5-jpmf-ch7v | Exploit Third Party Advisory |
https://github.com/DataDog/guarddog/blob/a1d064ceb09d39bb28deb6972bc0a278756ea91f/guarddog/scanners/package_scanner.py#L153..158 | Exploit Third Party Advisory |
https://github.com/DataDog/guarddog/commit/37c7d0767ba28f4df46117d478f97652594c491c | Patch Third Party Advisory |
https://github.com/DataDog/guarddog/security/advisories/GHSA-78m5-jpmf-ch7v | Exploit Third Party 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).
test 反向辣鸡数据投放 CVE-2022-23305 工具 利用 教程 Exploit POC
cve-2020-
None
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-23530
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-23530
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/DataDog/guarddog/blob/a1d064ceb09d39bb28deb6972bc0a278756ea91f/guarddog/scanners/package_scanner.py#L153..158 Added Reference https://github.com/DataDog/guarddog/commit/37c7d0767ba28f4df46117d478f97652594c491c Added Reference https://github.com/DataDog/guarddog/security/advisories/GHSA-78m5-jpmf-ch7v -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Changed Description GuardDog is a CLI tool to identify malicious PyPI packages. Versions prior to v0.1.8 are vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package. Extracting files using shutil.unpack_archive() from a potentially malicious tarball without validating that the destination file path is within the intended destination directory can cause files outside the destination directory to be overwritten. This issue is patched in version 0.1.8. Potential workarounds include using a safer module, like zipfile, and validating the location of the extracted files and discarding those with malicious paths. GuardDog is a CLI tool to identify malicious PyPI packages. Versions prior to v0.1.8 are vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package. Extracting files using shutil.unpack_archive() from a potentially malicious tarball without validating that the destination file path is within the intended destination directory can cause files outside the destination directory to be overwritten. This issue is patched in version 0.1.8. Potential workarounds include using a safer module, like zipfile, and validating the location of the extracted files and discarding those with malicious paths. -
Initial Analysis by [email protected]
Dec. 22, 2022
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N Changed Reference Type https://github.com/DataDog/guarddog/blob/a1d064ceb09d39bb28deb6972bc0a278756ea91f/guarddog/scanners/package_scanner.py#L153..158 No Types Assigned https://github.com/DataDog/guarddog/blob/a1d064ceb09d39bb28deb6972bc0a278756ea91f/guarddog/scanners/package_scanner.py#L153..158 Exploit, Third Party Advisory Changed Reference Type https://github.com/DataDog/guarddog/commit/37c7d0767ba28f4df46117d478f97652594c491c No Types Assigned https://github.com/DataDog/guarddog/commit/37c7d0767ba28f4df46117d478f97652594c491c Patch, Third Party Advisory Changed Reference Type https://github.com/DataDog/guarddog/security/advisories/GHSA-78m5-jpmf-ch7v No Types Assigned https://github.com/DataDog/guarddog/security/advisories/GHSA-78m5-jpmf-ch7v Exploit, Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:datadoghq:guarddog:*:*:*:*:*:python:*:* versions up to (excluding) 0.1.8
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-23530
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-2022-23530
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.11 }} 0.00%
score
0.44208
percentile