CVE-2022-4510

Public Exploit
Path Traversal in binwalk

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.

Remediation

Workaround:

  • The following workaround would fix the vulnerability: * removing the unpfs extractor from your local install of binwalk * disabling the unpfs extractor by editing binwalk's extract.conf configuration file * apply the fix provided at  https://github.com/ReFirmLabs/binwalk/pull/617 https://github.com/ReFirmLabs/binwalk/pull/617

Category

7.8
CVSS
Severity: High
CVSS 3.1 •
EPSS 42.53% Top 5%
Third-Party Advisory github.com
Affected: Refirm Labs binwalk
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-4510?
CVE-2022-4510 has been scored as a high severity vulnerability.
How to fix CVE-2022-4510?
As a workaround for remediating CVE-2022-4510: The following workaround would fix the vulnerability: * removing the unpfs extractor from your local install of binwalk * disabling the unpfs extractor by editing binwalk's extract.conf configuration file * apply the fix provided at  https://github.com/ReFirmLabs/binwalk/pull/617 https://github.com/ReFirmLabs/binwalk/pull/617
Is CVE-2022-4510 being actively exploited in the wild?
It is possible that CVE-2022-4510 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~43% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-4510?
CVE-2022-4510 affects Refirm Labs binwalk.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.