Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. binwalk
  4. ›
  5. CVE-2022-4510

CVE-2022-4510: Path traversal in binwalk

January 26, 2023 (updated December 20, 2025)

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.

References

  • github.com/ReFirmLabs/binwalk
  • github.com/ReFirmLabs/binwalk/pull/617
  • github.com/advisories/GHSA-3cm8-v4mc-gppg
  • lists.debian.org/debian-lts-announce/2025/12/msg00022.html
  • nvd.nist.gov/vuln/detail/CVE-2022-4510
  • security.gentoo.org/glsa/202309-07

Code Behaviors & Features

Detect and mitigate CVE-2022-4510 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.1.2b up to 2.3.3

Solution

Unfortunately, there is no solution available yet.

Impact 7.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/binwalk/CVE-2022-4510.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:49 +0000.