Path Traversal in binwalk
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Refirm Labs | binwalk | 2.1.2b – 2.3.3 | — | No fix listed | CNA |
| — | binwalk (PyPI) | 2.1.2b – 2.3.3 | — | No fix listed | GHSA-3cm8-v4mc-gppg |
- binwalk VendorRefirm Labs Affected 2.1.2b – 2.3.3 Fixed in — No fix listed CNA
- binwalk (PyPI) Vendor— Affected 2.1.2b – 2.3.3 Fixed in — No fix listed GHSA-3cm8-v4mc-gppg
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2022-4510
- 2026-10-03 Alias added: GHSA-3cm8-v4mc-gppg
References
More Microsoft Binwalk vulnerabilities
- TI-2021-03145 ReFirm Labs binwalk Archive Extraction extractor.py symlink CVSS 3.1MEDIUM 6.5
Sources
- CVE-2022-4510 · CVE Program
- CVE-2022-4510 · NVD
- FIRST EPSS
- GHSA-3cm8-v4mc-gppg · GitHub Advisory Database · CC BY 4.0
- CVE-2022-4510 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences