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.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)22.9%top 2.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

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

EcosystemPackageFixed inAdvisory
Debian:12binwalk2.3.4+dfsg1-1DEBIAN-CVE-2022-4510
Debian:13binwalk2.3.4+dfsg1-1DEBIAN-CVE-2022-4510
Debian:14binwalk2.3.4+dfsg1-1DEBIAN-CVE-2022-4510
PyPIbinwalkno fix listedGHSA-3cm8-v4mc-gppg
PyPIbinwalk2.3.4PYSEC-2026-787
Ubuntu:22.04:LTSbinwalkno fix listedUBUNTU-CVE-2022-4510

Affected products (as reported)

VendorProductVersions
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

References