Vulnerability · Published Jan 25, 2023 · Assigned by ONEKEY
CVE-2022-4510Path Traversal in binwalk
High 7.8
In plain English
A high-severity path traversal in binwalk from Refirm Labs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 22.9% (higher than 98% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | binwalk | 2.3.4+dfsg1-1 | DEBIAN-CVE-2022-4510 |
| Debian:13 | binwalk | 2.3.4+dfsg1-1 | DEBIAN-CVE-2022-4510 |
| Debian:14 | binwalk | 2.3.4+dfsg1-1 | DEBIAN-CVE-2022-4510 |
| PyPI | binwalk | no fix listed | GHSA-3cm8-v4mc-gppg |
| PyPI | binwalk | 2.3.4 | PYSEC-2026-787 |
| Ubuntu:22.04:LTS | binwalk | no fix listed | UBUNTU-CVE-2022-4510 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Refirm Labs | binwalk | 2.1.2b – through 2.3.3 |
Weakness: CWE-22 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H