Skip to main content
Public proof of conceptFix available

CVE-2022-4510

A public proof of concept exists; no exploitation attested.

  • Published2023-01-26
  • Fixed in2.3.4
  • WeaknessCWE-22

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2023-01-2621:18CVE publishedNVD
  2. 2023-04-05Exploit-DB entryExploit-DB

Observed activity

isMalicious corpus · updated 2026-11-03 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2022-4510?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2022-4510?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

OSV · NVD
binwalk
BranchAffectedFixed in
2.x≥ 2.1.2b, < 2.3.42.3.4
2.x≥ 2.1.2b, ≤ 2.3.3no fix published
Microsoft binwalk
BranchAffectedFixed in
2.x≥ 2.2.0, < 2.3.32.3.3

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As ONEKEY, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-09-17

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • binwalkUbuntu:22.04:LTSall versions · no fixed version listed
  • binwalkUbuntu:20.04:LTSall versions · no fixed version listed
  • binwalkUbuntu:18.04:LTSall versions · no fixed version listed
  • binwalkUbuntu:16.04:LTSall versions · no fixed version listed
  • binwalkopenSUSE:Tumbleweedall versions · fixed in 2.3.3-2.1
  • binwalkMageia:8all versions · fixed in 2.3.4-1.mga8
  • binwalkDebian:14all versions · fixed in 2.3.4+dfsg1-1
  • binwalkDebian:13all versions · fixed in 2.3.4+dfsg1-1

4 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-4510 Red Hat Product Security

    binwalk: path traversal in PFS extractor script

Full record on NVD

Fix

  1. Update binwalk to 2.3.4

Advisories and patches

Detection

read 2026-11-02 22:42 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
EDB-51249
Exploit-DB
Proof-of-concept repositories
3 repositories, unverifiedelectr0sm0g/CVE-2022-4510adhikara13/CVE-2022-4510-WalkingPathKalagious/BadPfs-CVE-2022-4510
PoC-in-GitHub
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
2023-01-26
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-3cm8-v4mc-gppg

Frequently asked questions

What is CVE-2022-4510?

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.

Is CVE-2022-4510 actively exploited?

Active exploitation of CVE-2022-4510 has not been confirmed. Its EPSS score was 22.0% on 2026-11-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-4510?

CVE-2022-4510 has a CVSS v3 base score of 7.8 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

Running binwalk? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record