CVE-2022-4510
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Refirm Labs | binwalk | 2.1.2b <= 2.3.3 | affected |
Weaknesses
- CWE-22: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Workarounds
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
ADP Enrichment
CVE Program Container
Additional References
- https://github.com/ReFirmLabs/binwalk/pull/617
- https://security.gentoo.org/glsa/202309-07
- https://lists.debian.org/debian-lts-announce/2025/12/msg00022.html
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: total
References
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.