patchminder
Proof of concept · Exploit-DB CVE-2022-4510

Remote code executionin the binwalk package.

Published 25 Jan 2023 · Updated 16 Dec 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (Exploit-DB).

Attack code is public
Severity
High 7.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 24.1% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 2.3.4 or later
In plain words

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.

What to do now
  • 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
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
binwalk
2.1.2b to 2.3.3
Not confirmed
CVE record
binwalk (PyPI)
2.1.2b to 2.3.3
Not confirmed
GitHub advisory
binwalk (PyPI)
2.1.2b to before 2.3.4
2.3.4
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 15 Dec 2022
    CVE ID reserved by ONEKEY.
  2. 25 Jan 2023
    Published in the CVE List.
  3. 6 Feb 2023
    First public proof of concept on GitHub.
  4. 16 Dec 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (Exploit-DB). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
1 entry
GitHub proof of concepts
3 repositories
Exploit-DBEDB-ID 51249remote exploit for python, published 5 Apr 2023
GitHubno warning signs foundadhikara13/CVE-2022-4510-WalkingPath14 stars · created 27 Jun 2023A Python script for generating exploits targeting CVE-2022-4510 RCE Binwalk. It supports SSH, command execution, and reverse shell options. Exploits are saved in PNG format. Ideal for testing and demo
GitHubno warning signs foundelectr0sm0g/CVE-2022-45109 stars · created 6 Feb 2023Binwalk Remote Command Execution
GitHubno warning signs foundKalagious/BadPfs-CVE-2022-45101 stars · created 11 Jul 2023Python script that generates pfs payloads to exploit CVE-2022-4510

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.

Related

Other vulnerabilities in this package

Same weakness: Path traversal

All CWE-22 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-4510: Remote code execution in the binwalk package. https://patchminder.com/cve/cve-2022-4510/ (accessed 5 December 2026).