CVE-2022-4510 in the critical feed json
Path Traversal in binwalk
published 3y ago modified 4mo ago also GHSA-3cm8-v4mc-gppg , PYSEC-2026-787 , EUVD-2023-0317
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 22.9%
- EPSS 22.9% chance of exploitation in 30 days, percentile 97%
- public exploits
- 1
- Exploit-DB
Summary
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.
Patch / fix
- pypi binwalk 2.3.4
- microsoft binwalk 2.3.3
- binwalk Debian 14, Debian 13, Debian 12 2.3.4+dfsg1-1
debian advisories DEBIAN-CVE-2022-4510
- binwalk openSUSE Tumbleweed 2.3.3-2.1
opensuse advisories openSUSE-SU-2024:12649-1
- github.com/ReFirmLabs/binwalk#617 pull request
Is CVE-2022-4510 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-4510 updated cvss 7.8
binwalk: path traversal in PFS extractor script
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- Published
- First public exploit (EDB-51249)
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
22.88% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- EDB-51249 Binwalk v2.3.2 - Remote Command Execution (RCE) remote, 2023-04-05
- github.com https://github.com/ReFirmLabs/binwalk/pull/617 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | binwalk | >=2.1.2b, <=2.3.3 >=2.1.2b, <2.3.4 |
2.3.4 |
Affected products
- Refirm Labs binwalk
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/ReFirmLabs/binwalk/pull/617
web, exploit, patch, third-party-advisory
-
security.gentoo.org
/glsa/202309-07
web
-
lists.debian.org
/debian-lts-announce/2025/12/msg00022.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-4510
advisory
-
github.com
/ReFirmLabs/binwalk
package
-
pypi.org
/project/binwalk
package
-
github.com
/advisories/GHSA-3cm8-v4mc-gppg
advisory
Sources
- CVE List CVE-2022-4510
- GitHub Advisory GHSA-3cm8-v4mc-gppg
- NVD CVE-2022-4510
- OSV PYSEC-2026-787
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.