Remote code executionin the binwalk package.
Proof of concept public (Exploit-DB).
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.
- Upgrade binwalk (PyPI) to 2.3.4 or later.
- Can't upgrade today? 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
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 15 Dec 2022CVE ID reserved by ONEKEY.
- 25 Jan 2023Published in the CVE List.
- 6 Feb 2023First public proof of concept on GitHub.
- 16 Dec 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (Exploit-DB). CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other vulnerabilities in this package
Same weakness: Path traversal
Patchminder. CVE-2022-4510: Remote code execution in the binwalk package. https://patchminder.com/cve/cve-2022-4510/ (accessed 5 December 2026).