CVE-2022-4510 Path Traversal in binwalk
HighCVSS 7.8
EPSS 22.9%
Public exploit
- Published
- Updated
- Exploit status
- Public exploit available
Description
A path traversal vulnerability was identified in ReFirm Labs binwalk from version 2.1.2b through 2.3.3 included. By crafting a malicious PFS filesystem file, an attacker can get binwalk's PFS extractor to extract files at arbitrary locations when binwalk is run in extraction mode (-e option). Remote code execution can be achieved by building a PFS filesystem that, upon extraction, would extract a malicious binwalk module into the folder .config/binwalk/plugins.
This vulnerability is associated with program files src/binwalk/plugins/unpfs.py.
This issue affects binwalk from 2.1.2b through 2.3.3 included.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi binwalk(PyPI) | >= 2.1.2b, <= 2.3.3 | No fix listed |
| pypi binwalk(PyPI) | >= 2.1.2b, < 2.3.4 | 2.3.4 |
| Refirm Labs binwalk | >= 2.1.2b, <= 2.3.3 | No fix listed |
| ubuntu/binwalk(Ubuntu:22.04) | All versions | No fix listed |
| Microsoft binwalk | >= 2.2.0, < 2.3.3 | 2.3.3 |
| debian/binwalk(Debian:12) | < 2.3.4+dfsg1-1 | 2.3.4+dfsg1-1 |
| debian/binwalk(Debian:14) | < 2.3.4+dfsg1-1 | 2.3.4+dfsg1-1 |
| debian/binwalk(Debian:13) | < 2.3.4+dfsg1-1 | 2.3.4+dfsg1-1 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com exploit patch third-party-advisory
- github.com product
- lists.debian.org
- security.gentoo.org
- pypi.org product
- github.com vendor-advisory
- Debian Security Tracker CVE-2022-4510 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org