LiveActive security incident?Get immediate response
CVE Record

CVE-2022-4510: Path Traversal in binwalk

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.

HighCVSS 7.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Binwalk can be tricked into writing extracted files outside the intended folder when a user analyzes a malicious PFS filesystem with extraction enabled. The source bundle says this can lead to code execution by placing a malicious binwalk plugin. Risk is highest for firmware analysis teams and automated intake pipelines.

Executive priority

Prioritize remediation where binwalk handles untrusted firmware or customer-supplied samples. The issue is not broadly internet-exposed, but it can compromise analyst workstations or build-analysis infrastructure if unsafe extraction workflows exist.

Technical view

CVE-2022-4510 is a CWE-22 path traversal in binwalk's PFS extractor, associated with src/binwalk/plugins/unpfs.py. Affected versions are 2.1.2b through 2.3.3 included. The CVSS 3.1 score is 7.8, with local attack vector and required user interaction through extraction mode.

Likely exposure

Organizations using binwalk to extract firmware or filesystem samples are exposed, especially if analysts or automation run binwalk -e on untrusted submissions. General servers are less likely exposed unless binwalk is installed and used in analysis workflows.

Exploitation context

The bundle does not show CISA KEV listing or confirmed active exploitation. Exploitation requires a crafted PFS filesystem and a user or process running binwalk extraction mode. Reported impact includes arbitrary file extraction paths and possible code execution through plugin placement.

Researcher notes

Evidence supports a path traversal in the PFS extractor and possible code execution via plugin placement. The source bundle does not provide exploit prevalence or a specific universal fixed version, so validation should rely on local package metadata and vendor advisories.

Mitigation direction

  • Update binwalk using trusted vendor or distribution packages where fixes are available.
  • Do not run affected binwalk versions on untrusted PFS files with extraction enabled.
  • Run firmware extraction in isolated, non-privileged sandboxes.
  • Restrict write access to binwalk plugin directories.
  • Check ReFirm Labs, Gentoo, and Debian guidance for fixed package status.

Validation and detection

  • Inventory binwalk installations and confirm versions are not 2.1.2b through 2.3.3.
  • Identify automated pipelines that run binwalk extraction on external samples.
  • Review whether extraction jobs run with unnecessary privileges or persistent home directories.
  • Audit binwalk plugin directories for unexpected modules.
  • Confirm distro advisories are reflected in deployed package versions.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-22: File access and web shell behavior lookup

File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-4510 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.8 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H1.85.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.8High
CVSS 3.1 vector shape for CVE-2022-4510Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
Refirm Labsbinwalkbinwalk, 2.1.2bunaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-22 · source CWE mapping

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.