{"api_version":"1","generated_at":"2026-07-23T13:59:58+00:00","cve":"CVE-2022-4510","urls":{"html":"https://cve.report/CVE-2022-4510","api":"https://cve.report/api/cve/CVE-2022-4510.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-4510","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-4510"},"summary":{"title":"CVE-2022-4510","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.","state":"PUBLIC","assigner":"research@onekey.com","published_at":"2023-01-26 21:18:00","updated_at":"2023-09-17 09:15:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://security.gentoo.org/glsa/202309-07","name":"https://security.gentoo.org/glsa/202309-07","refsource":"MISC","tags":[],"title":"Binwalk: Multiple Vulnerabilities (GLSA 202309-07) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/ReFirmLabs/binwalk/pull/617","name":"https://github.com/ReFirmLabs/binwalk/pull/617","refsource":"MISC","tags":[],"title":"fix path traversal in PFS extractor script by QKaiser · Pull Request #617 · ReFirmLabs/binwalk · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-4510","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4510","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"4510","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"microsoft","cpe5":"binwalk","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-4510","qid":"181606","title":"Debian Security Update for binwalk (DLA 3339-1)"},{"cve":"CVE-2022-4510","qid":"184847","title":"Debian Security Update for binwalk (CVE-2022-4510)"},{"cve":"CVE-2022-4510","qid":"283675","title":"Fedora Security Update for binwalk (FEDORA-2023-23047a5f4f)"},{"cve":"CVE-2022-4510","qid":"283676","title":"Fedora Security Update for binwalk (FEDORA-2023-32eb9d8ee7)"},{"cve":"CVE-2022-4510","qid":"710747","title":"Gentoo Linux Binwalk Multiple Vulnerabilities (GLSA 202309-07)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-4510","ASSIGNER":"research@onekey.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"\nA 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.\n\n"}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","cweId":"CWE-22"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"Refirm Labs","product":{"product_data":[{"product_name":"binwalk","version":{"version_data":[{"version_affected":"<=","version_name":"2.1.2b","version_value":"2.3.3"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/ReFirmLabs/binwalk/pull/617","refsource":"MISC","name":"https://github.com/ReFirmLabs/binwalk/pull/617"},{"url":"https://security.gentoo.org/glsa/202309-07","refsource":"MISC","name":"https://security.gentoo.org/glsa/202309-07"}]},"generator":{"engine":"Vulnogram 0.1.0-dev"},"source":{"discovery":"EXTERNAL"},"work_around":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"The following workaround would fix the vulnerability:<br><ul><li>removing the unpfs extractor from your local install of binwalk</li><li>disabling the unpfs extractor by editing binwalk's extract.conf configuration file</li><li>apply the fix provided at&nbsp;<a target=\"_blank\" rel=\"nofollow\" href=\"https://github.com/ReFirmLabs/binwalk/pull/617\">https://github.com/ReFirmLabs/binwalk/pull/617</a></li></ul>"}],"value":"The following workaround would fix the vulnerability:\n  *  removing the unpfs extractor from your local install of binwalk\n  *  disabling the unpfs extractor by editing binwalk's extract.conf configuration file\n  *  apply the fix provided at  https://github.com/ReFirmLabs/binwalk/pull/617 https://github.com/ReFirmLabs/binwalk/pull/617 \n\n\n"}],"exploit":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"The finder provided a proof-of-concept publicly so that maintainers could reproduce the vulnerability (see <a target=\"_blank\" rel=\"nofollow\" href=\"https://github.com/ReFirmLabs/binwalk/pull/617\">https://github.com/ReFirmLabs/binwalk/pull/617</a>)."}],"value":"The finder provided a proof-of-concept publicly so that maintainers could reproduce the vulnerability (see  https://github.com/ReFirmLabs/binwalk/pull/617 https://github.com/ReFirmLabs/binwalk/pull/617 )."}],"credits":[{"lang":"en","value":"Quentin Kaiser from ONEKEY Research Labs"}],"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}]}},"nvd":{"publishedDate":"2023-01-26 21:18:00","lastModifiedDate":"2023-09-17 09:15:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:microsoft:binwalk:*:*:*:*:*:*:*:*","versionStartIncluding":"2.2.0","versionEndExcluding":"2.3.3","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}