Path traversal in binwalk
A path traversal vulnerability was identified in ReFirm Labs binwalk from version 2.1.2b through 2.3.3 inclusive. 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 and including 2.3.3.
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2022-4510US | high7.8 | Exploit | ||
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 bi… | ||||
references
External citations — patches, advisories, analysis.
- https://github.com/ReFirmLabs/binwalkPACKAGE
- https://github.com/ReFirmLabs/binwalk/pull/617WEB
- https://github.com/advisories/GHSA-3cm8-v4mc-gppgADVISORY
- https://lists.debian.org/debian-lts-announce/2025/12/msg00022.htmlWEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-4510ADVISORY
- https://pypi.org/project/binwalkPACKAGE
- https://security.gentoo.org/glsa/202309-07WEB
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan