Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2022-23530— GuardDog vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package

Quick assessment

Affected
DataDog guarddog
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

GuardDog是GuardDog开源的一个 CLI 工具,允许识别恶意PyPI包。 GuardDog v0.1.8之前版本存在路径遍历漏洞,该漏洞源于在扫描特制的远程PyPI包时容易受到任意文件写入的攻击,使用shutil.unpack_archive()从潜在恶意tarball中提取文件而不验证目标文件路径是否在预期目标目录内可能会导致目标目录外的文件被覆盖。

CVSS 5.8 · Medium EPSS 0.70% · P50
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-23530

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
GuardDog vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package
Source: CVE Program / CVE List V5
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
GuardDog 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
GuardDog是GuardDog开源的一个 CLI 工具,允许识别恶意PyPI包。 GuardDog v0.1.8之前版本存在路径遍历漏洞,该漏洞源于在扫描特制的远程PyPI包时容易受到任意文件写入的攻击,使用shutil.unpack_archive()从潜在恶意tarball中提取文件而不验证目标文件路径是否在预期目标目录内可能会导致目标目录外的文件被覆盖。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
DataDog guarddog < 0.1.8 -

II. Public POCs for CVE-2022-23530

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-23530

登录查看更多情报信息。

Patches & Fixes for CVE-2022-23530 (1)

Other References for CVE-2022-23530 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2022-23530

No comments yet


Leave a comment