CVE-2022-4510
A public proof of concept exists; no exploitation attested.
- Published2023-01-26
- Fixed in2.3.4
- WeaknessCWE-22
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2023-01-2621:18CVE publishedNVD
- 2023-04-05Exploit-DB entryExploit-DB
Observed activity
isMalicious corpus · updated 2026-11-03 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2022-4510?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2022-4510?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.x | ≥ 2.1.2b, < 2.3.4 | 2.3.4 | OSV |
| 2.x | ≥ 2.1.2b, ≤ 2.3.3 | no fix published | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.x | ≥ 2.2.0, < 2.3.3 | 2.3.3 | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As ONEKEY, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Refirm Labs binwalkother versions: not affected
package binwalkhttps://github.com/ReFirmLabs/binwalk/platforms: Linux, MacOS
Affected- ≥ 2.1.2b, ≤ 2.3.3no fix stated2.1.2b
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-09-17
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- binwalkUbuntu:22.04:LTSall versions · no fixed version listed
- binwalkUbuntu:20.04:LTSall versions · no fixed version listed
- binwalkUbuntu:18.04:LTSall versions · no fixed version listed
- binwalkUbuntu:16.04:LTSall versions · no fixed version listed
- binwalkopenSUSE:Tumbleweedall versions · fixed in 2.3.3-2.1
- binwalkMageia:8all versions · fixed in 2.3.4-1.mga8
- binwalkDebian:14all versions · fixed in 2.3.4+dfsg1-1
- binwalkDebian:13all versions · fixed in 2.3.4+dfsg1-1
4 more package ranges on OSV.dev
Vendor advisories
- CVE-2022-4510 Red Hat Product Security
binwalk: path traversal in PFS extractor script
Fix
- Update binwalk to 2.3.4
Advisories and patches
- github.comPatch
Detection
read 2026-11-02 22:42 UTC- Nuclei template
- none so far ProjectDiscovery
- Proof-of-concept repositories
- 3 repositories, unverifiedelectr0sm0g/CVE-2022-4510adhikara13/CVE-2022-4510-WalkingPathKalagious/BadPfs-CVE-2022-4510 PoC-in-GitHub
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2025-03-27
- OpenCVESSVC decisionnone—
- CNACVSS 3.17.8known since 2026-10-23
- NVDCVSS 3.17.8read 2026-10-23
- CNAweakness (CWE)CWE-22known since 2026-10-23
- NVDweakness (CWE)CWE-22read 2026-10-23
- FIRST EPSSEPSS score22.0 %read 2026-11-02
- PoC-in-GitHubproof of concept3read 2026-11-02
- Exploit-DBdetectionread 2026-11-02
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2023-01-31
Identifiers
- EUVD-2023-0317same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-3cm8-v4mc-gppgsame flawGitHub Advisory Database · CC-BY-4.0
- PYSEC-2026-787same flawPyPA Advisory Database · CC-BY-4.0
- DLA-3339-1advisory covering several CVEsDebian · LicenseRef-unstated
- DLA-4410-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2023-0074advisory covering several CVEsMageia · LicenseRef-unstated
- openSUSE-SU-2024:12649-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Published
- 2023-01-26
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-3cm8-v4mc-gppg
Frequently asked questions
What is CVE-2022-4510?
Is CVE-2022-4510 actively exploited?
What is the CVSS score for CVE-2022-4510?
Running binwalk? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-3cm8-v4mc-gppg
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0