{"id":"CVE-2022-4510","summary":"Path Traversal in binwalk","details":"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.\n This vulnerability is associated with program files src/binwalk/plugins/unpfs.py.\n\nThis issue affects binwalk from 2.1.2b through 2.3.3 included.","aliases":["GHSA-3cm8-v4mc-gppg","PYSEC-2026-787"],"modified":"2026-08-12T03:51:19.615114450Z","published":"2023-01-25T12:25:14.811Z","related":["openSUSE-SU-2024:12649-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/4xxx/CVE-2022-4510.json","cna_assigner":"ONEKEY","cwe_ids":["CWE-22"]},"references":[{"type":"WEB","url":"https://github.com/ReFirmLabs/binwalk/"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00022.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/4xxx/CVE-2022-4510.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4510"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202309-07"},{"type":"FIX","url":"https://github.com/ReFirmLabs/binwalk/pull/617"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/refirmlabs/binwalk","events":[{"introduced":"be738a52e09b0da2a6e21470e0dbcd5beb42ed1b"},{"fixed":"fa0c0bd59b8588814756942fe4cb5452e76c1dcd"}],"database_specific":{"extracted_events":[{"introduced":"2.1.2b"},{"last_affected":"2.3.3"},{"introduced":"2.2.0"},{"fixed":"2.3.3"}],"source":["AFFECTED_FIELD","CPE_RANGE"],"cpe":"cpe:2.3:a:microsoft:binwalk:*:*:*:*:*:*:*:*"}}],"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"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}