Advisory

GHSA-3cm8-v4mc-gppg

Also known as: CVE-2022-4510, PYSEC-2026-787

Summary

Path traversal in binwalk

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-01-26 21:30 UTC
Modified
2026-07-07 11:56 UTC

Affected packages and fixes

binwalk

PyPI · All systems

Affected

  • introduced 2.1.2b, last affected 2.3.3 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences