nday
CVE-2022-4510

Path Traversal in binwalk

Refirm Labs / binwalk

A public PoC appeared 70 days after disclosure. nday has no fix record for it yet; that does not mean no patch exists. Listed by 1 of 4 PoC sources: exploitdb. Not in CISA KEV.

tags weakness typepath traversal accesslocalno authentication required exploitationExploit-DB
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

path traversal
CWE-22, stated by the CNA ONEKEY, NVD's analysts, and NVD, republishing [email protected]
local
AV:L in CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (CVSS 3.1) from the CNA ONEKEY
no authentication required
PR:N in CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (CVSS 3.1) from the CNA ONEKEY
Exploit-DB
Exploit-DB entries 51249
stage
POC
disclosed
disclosure → PoC
T+70d POC is date-only
cvss
7.8 HIGH v3.1

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2023-01-25T12:25Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
2023-04-05, date only
ITWexploited
no record yet
KEVKEV
no record yet

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:L
Local: needs a local or SSH session, or a user tricked into acting on the machine
Attack complexity AC:L
Low: no special conditions; the attacker can expect repeatable success
Privileges required PR:N
None: no account or authorization needed
User interaction UI:R
Required: a user must do something, such as open a file or click a link

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVSS 3.1 vector from the CVE record, scored by the CNA ONEKEY.

Event log

+DISdisclosed

CVE record published by ONEKEY. CVSS 7.8, high.

src cvelist · nday , bulk import · raw
{
  "id": 62400,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2022-4510",
  "occurred_at": "2023-01-25T12:25:14.811Z",
  "observed_at": "2026-11-12T19:05:02.001372Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "version": "3.1",
      "base_score": 7.8,
      "base_severity": "HIGH"
    },
    "ssvc": {
      "timestamp": "2025-03-27T19:54:52.860514Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "total"
    },
    "state": "PUBLISHED",
    "date_published": "2023-01-25T12:25:14.811Z",
    "assigner_short_name": "ONEKEY"
  }
}
2023-04-05date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “Binwalk v2.3.2 - Remote Command Execution (RCE)” (EDB-51249).

src exploitdb 51249 · nday , bulk import · raw
{
  "id": 42264,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/51249",
  "occurred_at": "2023-04-05T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "51249",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/51249",
    "file": "exploits/python/remote/51249.py",
    "kind": "exploit",
    "tags": [],
    "type": "remote",
    "title": "Binwalk v2.3.2 - Remote Command Execution (RCE)",
    "author": "Etienne Lacoche",
    "edb_id": 51249,
    "cve_ids": [
      "CVE-2022-4510"
    ],
    "platform": "python",
    "verified": false,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2023-04-05",
    "date_updated": "2023-04-05",
    "date_published": "2023-04-05"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.