Every CVE Search/ Get API key

CVE-2022-4510

Path Traversal in binwalk

7.8 HighPublic exploitFix available

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

22.9%Up 20.2 points since Jan 26, 2023
90%50%10%1%

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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
binwalk
PyPI
2.1.2b to 2.3.3 None known
binwalk
Debian:12
before 2.3.4+dfsg1-1
2.3.4+dfsg1-1
binwalk
Debian:13
before 2.3.4+dfsg1-1
2.3.4+dfsg1-1
binwalk
Debian:14
before 2.3.4+dfsg1-1
2.3.4+dfsg1-1
binwalk
Debian: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
binwalk
Debian:11
before 2.3.1+dfsg1-1+deb11u1, plus listed versions
2.3.1+dfsg1-1
2.3.1+dfsg1-1+deb11u1
binwalk
Mageia:8
before 2.3.4-1.mga8
2.3.4-1.mga8
binwalk
PyPI
2.1.2b up to 2.3.4
2.3.4
binwalk
Ubuntu: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
binwalk
Ubuntu:18.04:LTS
All versions, plus listed versions
2.1.1-16
None known
binwalk
Ubuntu:20.04:LTS
All versions, plus listed versions
2.1.2~git20180830+dfsg1-12.2.0+dfsg1-1
None known
binwalk
Ubuntu:22.04:LTS
All versions, plus listed versions
2.3.2+dfsg1-12.3.3+dfsg1-2
None known
binwalk
openSUSE:Tumbleweed
before 2.3.3-2.1
2.3.3-2.1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubelectr0sm0g/CVE-2022-45102023-02-06
Exploit-DBBinwalk v2.3.2 - Remote Command Execution (RCE)2023-04-05
PoC in GitHubadhikara13/CVE-2022-4510-WalkingPath2023-06-27
PoC in GitHubKalagious/BadPfs-CVE-2022-45102023-07-11

History

History
RecordedChangedSources
exploitsOSV
first indexedCVE 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

Show 11 moreShow less
MoveEnter Open