GitHub Advisoryadvisory · PyPI

GHSA-3cm8-v4mc-gppg Path traversal in binwalk

HIGH Published 2023-01-26 Modified 2025-12-20 Official page ↗
Aliases
CVE-2022-4510
Ecosystem
PyPI
Packages
binwalk
Severity
High
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
CWE-22
Reviewed
2023-01-31

Affected packages

• PyPI binwalk: >= 2.1.2b, <= 2.3.3 (no fix yet)

Description

A path traversal vulnerability was identified in ReFirm Labs binwalk from version 2.1.2b through 2.3.3 inclusive. 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 and including 2.3.3.

Related

Alias · CVE (1)

  • CVE-2022-4510 A path traversal vulnerability was identified in ReFirm Labs binwalk from version 2.1.2b through 2.3.3 included. vulnerability

Weakness · CWE (1)

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

References