CVE-2022-4510: Path Traversal in binwalk
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.
Other sources
A path traversal vulnerability was identified in ReFirm Labs binwalk from version 2.1.2b through 2.3.3 inclusive. 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 and including 2.3.3.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/binwalkto a version that resolves this vulnerability.Fixed in 2.3.4+dfsg1-1Fixed in 2.4.3+dfsg1-2+deb13u1Fixed in 2.4.3+dfsg1-3 - Upgrade
Upgrade
debian/binwalkto a version that resolves this vulnerability.Fixed in 2.3.4+dfsg1-1
Event History
Frequently Asked Questions
What is the severity of CVE-2022-4510?
CVE-2022-4510 is categorized as a high severity vulnerability due to the potential for arbitrary file extraction.
How do I fix CVE-2022-4510?
To mitigate the risk of CVE-2022-4510, upgrade binwalk to version 2.3.4 or later.
What versions of binwalk are affected by CVE-2022-4510?
CVE-2022-4510 affects binwalk versions 2.1.2b through 2.3.3.
What exploitation methods are possible with CVE-2022-4510?
An attacker can exploit CVE-2022-4510 by crafting a malicious PFS filesystem file to extract files to arbitrary locations.
Who is the vendor associated with CVE-2022-4510?
The vendor associated with CVE-2022-4510 is ReFirm Labs, who maintains binwalk.