Skip to main content
← All vulnerabilities
CVE-2022-4510GHSA-3CM8-V4MC-GPPGPYSEC-2026-787

Path Traversal in binwalk

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.3.4
1 on Exploit-DB, 3 proofs of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. Public exploit on Exploit-DB

    EDB-51249

  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  4. Record last updated
  5. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • binwalk

    From 2.1.2b · through 2.3.3

  • binwalkPyPI

    From 2.1.2b · through 2.3.3

  • binwalkPyPI

    From 2.1.2b · fixed in 2.3.4

References 6

GitHub · ReFirmLabs/binwalk

security.gentoo.org

Exploit-DB

GitHub · Kalagious/BadPfs-CVE-2022-4510

GitHub · adhikara13/CVE-2022-4510-WalkingPath

GitHub · electr0sm0g/CVE-2022-4510