{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-4510","id":"CVE-2022-4510","title":"Path Traversal in binwalk","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 ","descriptionLong":"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","updated":"2026-10-28T02:30:30.587866687Z","reserved":"2022-12-15T08:12:09.055Z","status":"Modified","rejected":false,"assigner":"ONEKEY","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"ONEKEY"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"ONEKEY"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"onekey.com"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["Refirm Labs binwalk"],"affectedProducts":[{"vendor":"Refirm Labs","product":"binwalk","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"2.3.3","status":"affected","version":"2.1.2b","versionType":"2.1.2b"}],"platforms":["Linux","MacOS"]}],"packages":[{"ecosystem":"PyPI","name":"binwalk","purl":"pkg:pypi/binwalk","ranges":[">=2.1.2b <=2.3.3",">=2.1.2b <2.3.4"],"fixed":["2.3.4"],"advisory":"GHSA-3cm8-v4mc-gppg"}],"cwes":["CWE-22"],"aliases":["GHSA-3cm8-v4mc-gppg","PYSEC-2026-787"],"references":[{"url":"https://github.com/ReFirmLabs/binwalk/pull/617","tags":["x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://security.gentoo.org/glsa/202309-07","tags":["x_transferred","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00022.html","tags":["web"]},{"url":"https://github.com/ReFirmLabs/binwalk/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/4xxx/CVE-2022-4510.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4510","tags":["advisory"]},{"url":"https://github.com/ReFirmLabs/binwalk","tags":["package"]},{"url":"https://pypi.org/project/binwalk","tags":["package"]},{"url":"https://github.com/advisories/GHSA-3cm8-v4mc-gppg","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.2288,"epssPercentile":0.9778,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-4510","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4510","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-4510","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3cm8-v4mc-gppg","ok":true,"note":"GHSA-3cm8-v4mc-gppg"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-4510","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":["EPSS 23% with CVSS 7.8"],"attention":null}