CVE-2022-4510
HIGH 7.8CVSS 3.1Path 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.
- Published
- 26 Jan 2023
- Last modified
- 7 Jul 2026
- Assigned by
- research@onekey.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-3cm8-v4mc-gppgPYSEC-2026-787
- Sources
- NVDJSONOSV GHSA-3cm8-v4mc-gppgJSONOSV PYSEC-2026-787JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | research@onekey.com (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | microsoft | binwalkcpe:2.3:a:microsoft:binwalk:*:*:*:*:*:*:*:* |
>= 2.2.0, < 2.3.3 | 2.3.3 |
| OSV | PyPI | binwalk | >= 2.1.2b, <= 2.3.3 | |
| OSV | PyPI | binwalk | >= 2.1.2b, < 2.3.4 | 2.3.4 |
References
- https://github.com/ReFirmLabs/binwalk/pull/617 · Exploit, Patch, Third Party Advisory, WEB
- https://security.gentoo.org/glsa/202309-07 · WEB
- https://lists.debian.org/debian-lts-announce/2025/12/msg00022.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-4510 · ADVISORY
- https://github.com/ReFirmLabs/binwalk · PACKAGE
- https://pypi.org/project/binwalk · PACKAGE
- https://github.com/advisories/GHSA-3cm8-v4mc-gppg · ADVISORY
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 26 Jan 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Jan 2023)