CVEvulnerability
CVE-2022-4510
7.8 HIGH
Official page ↗
- Status
- Modified
- Published
- 2023-01-26
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CVSS 3.1 ([email protected])
- 7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-22
Description
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.
Affected configurations
• microsoft binwalk (>= 2.2.0 < 2.3.3)
Related
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://github.com/ReFirmLabs/binwalk/pull/617 Exploit, Patch, Third Party Advisory
- https://security.gentoo.org/glsa/202309-07 security.gentoo.org
- https://github.com/ReFirmLabs/binwalk/pull/617 Exploit, Patch, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2025/12/msg00022.html lists.debian.org
- https://security.gentoo.org/glsa/202309-07 security.gentoo.org