asar-pyに細工したアーカイブで任意のファイルを書き換えられる脆弱性
Summary
asar-pyのAsarArchive.extract()とextract_archive()に、パストラバーサルの脆弱性が見つかりました。細工した.asarアーカイブを展開させると、展開先の外にファイルを書き込まれ、usercustomize.pyなどを通じてコードを実行される可能性があります。0.1.4より前の版が対象で、0.1.4以降に修正版が公開されています。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
asar-pyのAsarArchive.extract()とextract_archive()に、パストラバーサルの脆弱性が見つかりました。細工した.asarアーカイブを展開させると、展開先の外にファイルを書き込まれ、usercustomize.pyなどを通じてコードを実行される可能性があります。0.1.4より前の版が対象で、0.1.4以降に修正版が公開されています。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| black-06asar-py |
< 0.1.4→ 0.1.4 |
0.1.4 |
Original description The description as published by the source.
asar-py before 0.1.4 contains a path traversal vulnerability in AsarArchive.extract() and extract_archive() that allows attackers to write files outside the destination directory via crafted archive headers. Attackers can supply a .asar archive with '..' path components or malicious symlink targets to write files such as usercustomize.py, leading to code execution.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- report github.com
- web github.com
- web github.com
- web pypi.org