What’s Vulnerable › Vulnerabilities
CVE-2022-4510: Path Traversal in binwalk
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 22.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2023-01-25 · updated 2026-06-17
- Weakness: CWE-22
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.
Affected products
- Refirm Labs binwalk: from 2.2.0 before 2.3.3 — fixed in 2.3.3
- Refirm Labs binwalk: from 2.1.2b through 2.3.3
How to fix
Upgrade to a fixed version: Refirm Labs binwalk 2.3.3. Check the vendor advisory for mitigations.
References
- https://github.com/ReFirmLabs/binwalk/pull/617
- https://security.gentoo.org/glsa/202309-07
- https://github.com/ReFirmLabs/binwalk/pull/617
- https://lists.debian.org/debian-lts-announce/2025/12/msg00022.html
- https://security.gentoo.org/glsa/202309-07
Get alerted when CVE-2022-4510 or the next vulnerability affects your stack