{"cve":"CVE-2022-4510","nvd":{"published":"2023-01-26T21:18:06.547","modified":"2026-06-17T05:21:04.380","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-22"],"references":["https://github.com/ReFirmLabs/binwalk/pull/617","https://security.gentoo.org/glsa/202309-07","https://github.com/ReFirmLabs/binwalk/pull/617","https://lists.debian.org/debian-lts-announce/2025/12/msg00022.html","https://security.gentoo.org/glsa/202309-07"],"products":["microsoft:binwalk"],"source":"nvd","synced_at":"2026-10-19T21:37:34.931465858+00:00"},"epss":{"cve":"CVE-2022-4510","score":0.22013,"percentile":0.97662,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-3cm8-v4mc-gppg","url":"https://osv.dev/vulnerability/GHSA-3cm8-v4mc-gppg","summary":"Path traversal in binwalk","modified":"2026-07-07T11:56:33.354430649Z","packages":[{"ecosystem":"PyPI","name":"binwalk","purl":"pkg:pypi/binwalk","ranges":[">=2.1.2b <=2.3.3"],"fixed":[]}]},{"id":"PYSEC-2026-787","url":"https://osv.dev/vulnerability/PYSEC-2026-787","summary":"Path traversal in binwalk","modified":"2026-07-07T11:45:43.106389018Z","packages":[{"ecosystem":"PyPI","name":"binwalk","purl":"pkg:pypi/binwalk","ranges":[">=2.1.2b <2.3.4"],"fixed":["2.3.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}