{"id":"CVE-2022-4510","aliases":["GHSA-3cm8-v4mc-gppg","PYSEC-2026-787"],"url":"https://o3.security/vulnerability/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.","published":"2023-01-25T12:25:14.811Z","modified":"2026-08-12T03:51:19.615114450Z","cvss":{"score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":6,"affectedPackages":[{"ecosystem":"PyPI","name":"binwalk","fixedVersion":null}],"fix":{"url":"https://github.com/ReFirmLabs/binwalk/pull/617","label":"ReFirmLabs/binwalk#617"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:19.615114450Z"}}