CVE-2022-4510
Path 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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.8
Path 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.
- Record
CVE-2022-4510- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-22
- Updated
- 2026-11-02
EUVDEUVD-2023-0317
7.8
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.
- Record
EUVD-2023-0317- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-3cm8-v4mc-gppg
7.8
Path traversal in binwalk
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.
- Record
GHSA-3cm8-v4mc-gppg- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-22
- Updated
- 2026-11-02
NVD
7.8
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.
- Record
CVE-2022-4510- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-22
- Updated
- 2026-11-02
OSV
7.8
Path 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.
- Record
CVE-2022-4510- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-4510
7.8
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.
- Record
DEBIAN-CVE-2022-4510- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
Show 5 moreShow less
OSVGHSA-3cm8-v4mc-gppg
7.8
Path traversal in binwalk
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.
- Record
GHSA-3cm8-v4mc-gppg- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVPYSEC-2026-787
7.8
Path traversal in binwalk
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.
- Record
PYSEC-2026-787- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-4510
7.8
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.
- Record
UBUNTU-CVE-2022-4510- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2023-0074 No score
Updated binwalk packages fix security vulnerability
Remote code execution using crafted PFS filesystem. (CVE-2022-4510)
- Record
MGASA-2023-0074- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12649-1 No score
binwalk-2.3.3-2.1 on GA media
These are all security issues fixed in the binwalk-2.3.3-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12649-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
binwalkPyPI |
2.1.2b to 2.3.3 | None known |
binwalkDebian:12 |
before 2.3.4+dfsg1-1 | 2.3.4+dfsg1-1 |
binwalkDebian:13 |
before 2.3.4+dfsg1-1 | 2.3.4+dfsg1-1 |
binwalkDebian:14 |
before 2.3.4+dfsg1-1 | 2.3.4+dfsg1-1 |
binwalkDebian:10 |
before 2.1.2~git20180830+dfsg1-1+deb10u1, plus listed versions 2.1.2~git20180830+dfsg1-1 |
2.1.2~git20180830+dfsg1-1+deb10u1 |
binwalkDebian:11 |
before 2.3.1+dfsg1-1+deb11u1, plus listed versions 2.3.1+dfsg1-1 |
2.3.1+dfsg1-1+deb11u1 |
binwalkMageia:8 |
before 2.3.4-1.mga8 | 2.3.4-1.mga8 |
binwalkPyPI |
2.1.2b up to 2.3.4 | 2.3.4 |
binwalkUbuntu:16.04:LTS |
All versions, plus listed versions 2.0.1+dfsg-12.0.1+dfsg-22.0.1+dfsg-32.1.1-12.1.1-22.1.1-32.1.1-4 |
None known |
binwalkUbuntu:18.04:LTS |
All versions, plus listed versions 2.1.1-16 |
None known |
binwalkUbuntu:20.04:LTS |
All versions, plus listed versions 2.1.2~git20180830+dfsg1-12.2.0+dfsg1-1 |
None known |
binwalkUbuntu:22.04:LTS |
All versions, plus listed versions 2.3.2+dfsg1-12.3.3+dfsg1-2 |
None known |
binwalkopenSUSE:Tumbleweed |
before 2.3.3-2.1 | 2.3.3-2.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | electr0sm0g/CVE-2022-4510 | 2023-02-06 |
| Exploit-DB | Binwalk v2.3.2 - Remote Command Execution (RCE) | 2023-04-05 |
| PoC in GitHub | adhikara13/CVE-2022-4510-WalkingPath | 2023-06-27 |
| PoC in GitHub | Kalagious/BadPfs-CVE-2022-4510 | 2023-07-11 |
History
| Recorded | Changed | Sources |
|---|---|---|
| exploits | OSV | |
| first indexed | CVE List, EUVD, Exploit-DB, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-4510 is a high vulnerability (CVSS 7.8) in Microsoft Binwalk, published January 25, 2023. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 22.9%, the 97th percentile. Fixed in binwalk 2.3.4+dfsg1-1.
References
github.com/ReFirmLabs/binwalk/pull/617
security.gentoo.org/glsa/202309-07
lists.debian.org/debian-lts-announce/2025/12/msg00022.html
nvd.nist.gov/vuln/detail/CVE-2022-4510
github.com/advisories/GHSA-3cm8-v4mc-gppg
github.com/ReFirmLabs/binwalk
Show 11 moreShow less
github.com/CVEProject/cvelistV5/tree/main/cves/2022/4xxx/CVE-2022-4510.json
security-tracker.debian.org/tracker/CVE-2022-4510
advisories.mageia.org/MGASA-2023-0074.html
bugs.mageia.org/show_bug.cgi?id=31375
lists.fedoraproject.org/archives/list/[email protected]/thread/M2TTCIDC6ZNFMU5XFFFDFZEBHO2CU5NG
debian.org/lts/security/2023/dla-3339
pypi.org/project/binwalk
ubuntu.com/security/CVE-2022-4510
github.com/ReFirmLabs/binwalk/commit/696fe34ed680ffd951bfeca737feb4a0b98dde5c
cve.org/CVERecord?id=CVE-2022-4510
suse.com/security/cve/CVE-2022-4510