# CVE-2022-4510: Path Traversal in binwalk

- Severity: High 7.8 (CVSS:3.1, scored by ONEKEY) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 24.1%, higher than 97% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-01-25T12:25:14.811Z
- Modified: 2026-07-07T11:56:33.354Z
- Also known as: GHSA-3cm8-v4mc-gppg, PYSEC-2026-787
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: ONEKEY

## 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.
 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.

(As written by CVE List.)

## Affected

- binwalk: from 2.1.2b up to 2.3.3
- binwalk (PyPI): from 2.1.2b up to 2.3.3; from 2.1.2b before 2.3.4
- microsoft binwalk: from 2.2.0 before 2.3.3

## Every score

- ONEKEY: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/ReFirmLabs/binwalk/pull/617> (exploit, patch, third-party-advisory, web)
- <https://security.gentoo.org/glsa/202309-07> (web)
- <https://lists.debian.org/debian-lts-announce/2025/12/msg00022.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-4510> (advisory)
- <https://github.com/ReFirmLabs/binwalk> (package)
- <https://pypi.org/project/binwalk> (package)
- <https://github.com/advisories/GHSA-3cm8-v4mc-gppg> (advisory)

## Sources

- CVE List: [CVE-2022-4510](https://www.cve.org/CVERecord?id=CVE-2022-4510), CVE Terms of Use, modified 2025-12-16
- GitHub Advisory Database: [GHSA-3cm8-v4mc-gppg](https://github.com/advisories/GHSA-3cm8-v4mc-gppg), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2022-4510](https://nvd.nist.gov/vuln/detail/CVE-2022-4510), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-787](https://osv.dev/vulnerability/PYSEC-2026-787), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2022-4510 · Whole record: https://cve.day/CVE-2022-4510.json · Rebuilt by cve.day 2026-11-25T22:58:18.350Z
