Skip to content
Fencer Vulns
high 7.8

CVE-2022-4510 in the critical feed json

Path Traversal in binwalk

published 2023-01-25 3 y ago modified 2026-07-07 4 mo ago also GHSA-3cm8-v4mc-gppg , PYSEC-2026-787 , EUVD-2023-0317

cvss
7.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
22.9%
EPSS 22.9% chance of exploitation in 30 days, percentile 97%
public exploits
1
Exploit-DB

Summary

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.

Patch / fix

  • pypi binwalk 2.3.4
  • microsoft binwalk 2.3.3
  • binwalk Debian 14, Debian 13, Debian 12 2.3.4+dfsg1-1

debian advisories DEBIAN-CVE-2022-4510

  • binwalk openSUSE Tumbleweed 2.3.3-2.1

opensuse advisories openSUSE-SU-2024:12649-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-4510 updated cvss 7.8

binwalk: path traversal in PFS extractor script

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. Published
  2. First public exploit (EDB-51249)

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
19 mo ago

Exploit prediction

22.88% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • EDB-51249 Binwalk v2.3.2 - Remote Command Execution (RCE) remote, 2023-04-05
  • github.com https://github.com/ReFirmLabs/binwalk/pull/617 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
GitHub 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi binwalk
>=2.1.2b, <=2.3.3
>=2.1.2b, <2.3.4
2.3.4

Affected products

  • Refirm Labs binwalk

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.