Vulnerability Details : CVE-2022-4510
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.
Vulnerability category: Directory traversalExecute code
Products affected by CVE-2022-4510
- cpe:2.3:a:microsoft:binwalk:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-4510
35.66%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 97 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-4510
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.8
|
HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
1.8
|
5.9
|
NIST | |
7.8
|
HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
1.8
|
5.9
|
ONEKEY GmbH |
CWE ids for CVE-2022-4510
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by:
- nvd@nist.gov (Primary)
- research@onekey.com (Secondary)
References for CVE-2022-4510
-
https://github.com/ReFirmLabs/binwalk/pull/617
fix path traversal in PFS extractor script by QKaiser · Pull Request #617 · ReFirmLabs/binwalk · GitHubExploit;Patch;Third Party Advisory
-
https://security.gentoo.org/glsa/202309-07
Binwalk: Multiple Vulnerabilities (GLSA 202309-07) — Gentoo security
Jump to