binwalk — security advisory
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
- binwalk
- Affected versions
- Not specified
- Fixed versions
- 2.3.4+dfsg1-1
- CVEs
- CVE-2022-4510
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 15:23 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:DEBIAN-CVE-2022-4510
binwalk
Fixed versions: 2.3.4+dfsg1-1
binwalk
Fixed versions: 2.3.4+dfsg1-1
binwalk
Fixed versions: 2.3.4+dfsg1-1
Complete source record
{
"id": "d31059ce27e2eab8167704fd3edefe20d309a34cf6de7ba8a695b422d85ba550",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-4510",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2022-4510",
"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:DEBIAN-CVE-2022-4510",
"products": [
{
"name": {
"value": "binwalk",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.3.4+dfsg1-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "binwalk",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.3.4+dfsg1-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "binwalk",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.3.4+dfsg1-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2022-4510",
"aliases": [
"DEBIAN-CVE-2022-4510"
],
"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": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.3.4+dfsg1-1"
}
]
}
],
"package": {
"name": "binwalk",
"purl": "pkg:deb/debian/binwalk?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-4510.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.3.4+dfsg1-1"
}
]
}
],
"package": {
"name": "binwalk",
"purl": "pkg:deb/debian/binwalk?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-4510.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.3.4+dfsg1-1"
}
]
}
],
"package": {
"name": "binwalk",
"purl": "pkg:deb/debian/binwalk?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-4510.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-15T08:02:55.609128073Z",
"provider": "osv",
"upstream": [
"CVE-2022-4510"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2022-4510"
]
},
"related_cves": [
{
"value": "CVE-2022-4510",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 324630,
"published_at": "2023-01-26T21:18:06.547+00:00"
}