CVE-2022-4510
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2022-4510
Exploits
Exploit-DB
- EDB-51249 · remote · python
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | fixed | 2.3.4+dfsg1-1 |
| debian | bullseye | fixed | 2.3.1+dfsg1-1+deb11u1 |
| debian | forky | fixed | 2.3.4+dfsg1-1 |
| debian | sid | fixed | 2.3.4+dfsg1-1 |
| debian | trixie | fixed | 2.3.4+dfsg1-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| PyPI | binwalk | >=2.1.2b,<=2.3.3 | |
References
Verify integrity in audit chain (admin only). AS-IS.