{"id":"UBUNTU-CVE-2022-4510","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.  This vulnerability is associated with program files src/binwalk/plugins/unpfs.py. This issue affects binwalk from 2.1.2b through 2.3.3 included.","modified":"2026-11-18T07:15:12.162987730Z","published":"2023-01-26T21:18:00Z","related":["USN-9134-1"],"upstream":["CVE-2022-4510"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-4510"},{"type":"REPORT","url":"https://github.com/ReFirmLabs/binwalk/pull/617"},{"type":"REPORT","url":"https://github.com/ReFirmLabs/binwalk/commit/696fe34ed680ffd951bfeca737feb4a0b98dde5c"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-4510"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-9134-1"}],"affected":[{"package":{"name":"binwalk","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/binwalk?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0+dfsg1-1ubuntu0.1~esm1"}]}],"versions":["2.1.2~git20180830+dfsg1-1","2.2.0+dfsg1-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"2.2.0+dfsg1-1ubuntu0.1~esm1","binary_name":"binwalk"},{"binary_name":"python3-binwalk","binary_version":"2.2.0+dfsg1-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4510.json"}},{"package":{"name":"binwalk","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/binwalk?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.3+dfsg1-2ubuntu0.1~esm1"}]}],"versions":["2.3.2+dfsg1-1","2.3.3+dfsg1-2"],"ecosystem_specific":{"binaries":[{"binary_name":"binwalk","binary_version":"2.3.3+dfsg1-2ubuntu0.1~esm1"},{"binary_name":"python3-binwalk","binary_version":"2.3.3+dfsg1-2ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4510.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}