{"answers":{"affected":"3 open source packages ship an affected version, including binwalk. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-4510 in the wild and no public exploit code.","fix":"Upgrade binwalk to 2.3.4 or later.","what":"CVE-2022-4510 is a high-severity path traversal vulnerability in Refirm Labs binwalk, published on 25 Jan 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-4510 and fix it if it is affected.\n\nWhat it is: CVE-2022-4510 is a high-severity path traversal vulnerability in Refirm Labs binwalk, published on 25 Jan 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-4510 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- binwalk (PyPI): affected from 2.1.2b up to 2.3.3; no fix listed\n- binwalk (PyPI): affected from 2.1.2b up to 2.3.3; no fix listed\n- binwalk (PyPI): affected from 2.1.2b; fixed in 2.3.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-4510/ (Markdown: https://insights.sbomify.com/CVE-2022-4510/index.md)","id":"CVE-2022-4510","markdown":"https://insights.sbomify.com/CVE-2022-4510/index.md","name":"CVE-2022-4510","record":{"aliases":["DEBIAN-CVE-2022-4510","DLA-3339-1","DLA-4410-1","GHSA-3cm8-v4mc-gppg","MGASA-2023-0074","PYSEC-2026-787","UBUNTU-CVE-2022-4510","openSUSE-SU-2024:12649-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"binwalk firmware analysis","requires_auth":"none","summary":"Attackers can achieve remote code execution by crafting malicious PFS files that exploit path traversal in binwalk's extraction mode.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"ONEKEY","cpe":[{"product":"binwalk","vendor":"microsoft"}],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":1,"first_seen":"2023-02-06","github_poc":3,"max_poc_stars":14,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-06-27T02:20:13Z","kind":"github_poc","ref":"https://github.com/adhikara13/CVE-2022-4510-WalkingPath","stars":14,"title":"A Python script for generating exploits targeting CVE-2022-4510 RCE Binwalk. It supports SSH, command execution, and reverse shell options. Exploits are saved in PNG format. Ideal for testing and demonstrations."},{"date":"2023-02-06T20:53:49Z","kind":"github_poc","ref":"https://github.com/electr0sm0g/CVE-2022-4510","stars":9,"title":"Binwalk Remote Command Execution"},{"date":"2023-07-11T20:55:58Z","kind":"github_poc","ref":"https://github.com/Kalagious/BadPfs-CVE-2022-4510","stars":1,"title":"Python script that generates pfs payloads to exploit CVE-2022-4510"},{"date":"2023-04-05","kind":"exploitdb","ref":"51249","stars":null,"title":"Binwalk v2.3.2 - Remote Command Execution (RCE)"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Path Traversal in binwalk","id":"CVE-2022-4510","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":4,"n_references":2,"next":{"headline":"RainyGao DocSys path traversal","id":"CVE-2022-4511"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["2.1.2b"],"last_affected":["2.3.3"],"package":"binwalk","purl":null,"source":"GHSA-3cm8-v4mc-gppg"},{"ecosystem":"PyPI","fixed":[],"introduced":["2.1.2b"],"last_affected":["2.3.3"],"package":"binwalk","purl":"pkg:pypi/binwalk","source":"GHSA-3cm8-v4mc-gppg"},{"ecosystem":"PyPI","fixed":["2.3.4"],"introduced":["2.1.2b"],"last_affected":[],"package":"binwalk","purl":"pkg:pypi/binwalk","source":"PYSEC-2026-787"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.3.3-2.1"],"introduced":["0"],"last_affected":[],"package":"binwalk","purl":"pkg:rpm/opensuse/binwalk\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12649-1"}],"prev":{"headline":"Content Control \u003c 1.1.10 - Contributor+ Stored XSS","id":"CVE-2022-4509"},"products":["binwalk"],"published":"2023-01-25","related":[{"cvss_score":5,"headline":"ReFirm Labs binwalk Archive Extraction extractor.py symlink","id":"CVE-2021-4287","kev_date_added":null,"published":"2022-12-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-12-16","vendors":["Refirm Labs"]},"summary":"Attackers can achieve remote code execution by crafting malicious PFS files that exploit path traversal in binwalk's extraction mode.","url":"https://insights.sbomify.com/CVE-2022-4510/"}