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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-4510
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 16:47 UTC · Revision 1
Source evidence
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.
osv:CVE-2022-4510
Complete source record
{
"id": "f32c31e5d61c3609d963d70dd4fd30e7c33bca969c938f9a3606167aa49ff4b8",
"url": "https://osv.dev/vulnerability/CVE-2022-4510",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Path Traversal in binwalk",
"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.",
"evidence": "osv:CVE-2022-4510",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2022-4510",
"aliases": [
"CVE-2022-4510",
"GHSA-3cm8-v4mc-gppg",
"PYSEC-2026-787"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/refirmlabs/binwalk",
"type": "GIT",
"events": [
{
"introduced": "be738a52e09b0da2a6e21470e0dbcd5beb42ed1b"
},
{
"fixed": "fa0c0bd59b8588814756942fe4cb5452e76c1dcd"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "2.1.2b"
},
{
"last_affected": "2.3.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"cpe": "cpe:2.3:a:microsoft:binwalk:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.2.0"
},
{
"fixed": "2.3.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v2.3.2",
"v2.3.1",
"v2.3.0",
"python27",
"v2.2.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-4510.json"
}
}
],
"modified": "2026-10-28T02:30:30.587866687Z",
"provider": "osv",
"references": [
"https://github.com/ReFirmLabs/binwalk/",
"https://lists.debian.org/debian-lts-announce/2025/12/msg00022.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/4xxx/CVE-2022-4510.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-4510",
"https://security.gentoo.org/glsa/202309-07",
"https://github.com/ReFirmLabs/binwalk/pull/617"
],
"provider_metadata": {
"cwe_ids": [
"CWE-22"
],
"cna_assigner": "ONEKEY",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/4xxx/CVE-2022-4510.json"
}
},
"related_cves": [
{
"value": "CVE-2022-4510",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 497562,
"published_at": "2023-01-25T12:25:14.811+00:00"
}