Directory Traversal Affecting binwalk package, versions <2.3.4+dfsg1-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
24.06% (98th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-BINWALK-19698128
  • published12 Sept 2026
  • disclosed26 Jan 2023

Introduced: 26 Jan 2023

CVE-2022-4510  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Echo:latest binwalk to version 2.3.4+dfsg1-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream binwalk package and not the binwalk package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1