CVE-2022-4510: Path Traversal in binwalk

Published Jan 25, 2023
·
Updated

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

8 affected componentsFixes available
pip/binwalk>=2.1.2b<=2.3.3
Microsoft Binwalk>=2.2.0<2.3.3
debian/binwalk
2.3.4+dfsg1-12.4.3+dfsg1-2+deb13u12.4.3+dfsg1-3
debian/binwalk<2.3.4+dfsg1-1
2.3.4+dfsg1-1
debian/binwalk<2.3.4+dfsg1-1
2.3.4+dfsg1-1
debian/binwalk<2.3.4+dfsg1-1
2.3.4+dfsg1-1
ubuntu/binwalk*
ubuntu/binwalk*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/binwalk to 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
  2. Upgrade

    Upgrade debian/binwalk to a version that resolves this vulnerability.

    Fixed in 2.3.4+dfsg1-1

Event History

Jan 25, 2023
CVE Published
via MITRE·12:25 PM
Data Sourced
via MITRE·12:25 PM
DescriptionSeverityWeakness
Jan 26, 2023
Data Sourced
via OSV·09:18 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·09:18 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
09:30 PM
Feb 6, 2023
Exploit Published
via GitHub·08:53 PM

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

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.

2

How do I fix CVE-2022-4510?

To mitigate the risk of CVE-2022-4510, upgrade binwalk to version 2.3.4 or later.

3

What versions of binwalk are affected by CVE-2022-4510?

CVE-2022-4510 affects binwalk versions 2.1.2b through 2.3.3.

4

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.

5

Who is the vendor associated with CVE-2022-4510?

The vendor associated with CVE-2022-4510 is ReFirm Labs, who maintains binwalk.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203