# CVE-2021-4287: ReFirm Labs binwalk Archive Extraction extractor.py symlink

- Severity: Medium 5.0 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`
- 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): 2.15%, higher than 83% of CVEs (2026-11-30)
- Published: 2022-12-27T10:32:41.014Z
- Modified: 2026-07-07T11:56:32.774Z
- Also known as: GHSA-8m3f-g62j-3vx8, PYSEC-2026-788
- Weaknesses: CWE-59, CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A vulnerability, which was classified as problematic, was found in ReFirm Labs binwalk up to 2.3.2. Affected is an unknown function of the file src/binwalk/modules/extractor.py of the component Archive Extraction Handler. The manipulation leads to symlink following. It is possible to launch the attack remotely. Upgrading to version 2.3.3 is able to address this issue. The name of the patch is fa0c0bd59b8588814756942fe4cb5452e76c1dcd. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-216876.

(As written by CVE List.)

## Affected

- ReFirm Labs binwalk: 2.3.0; 2.3.1; 2.3.2
- binwalk (PyPI): before 2.3.3
- microsoft binwalk: before 2.3.3

## Every score

- VulDB: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`
- VulDB: CVSS:3.0 5.0 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://vuldb.com/?id.216876> (third-party-advisory, vdb-entry, web)
- <https://vuldb.com/?ctiid.216876> (permissions-required, signature, third-party-advisory, web)
- <https://github.com/ReFirmLabs/binwalk/pull/556> (issue-tracking, patch, third-party-advisory, web)
- <https://github.com/ReFirmLabs/binwalk/commit/fa0c0bd59b8588814756942fe4cb5452e76c1dcd> (patch, third-party-advisory, web)
- <https://github.com/ReFirmLabs/binwalk/releases/tag/v2.3.3> (patch, release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-4287> (advisory)
- <https://github.com/ReFirmLabs/binwalk> (package)
- <https://pypi.org/project/binwalk> (package)
- <https://github.com/advisories/GHSA-8m3f-g62j-3vx8> (advisory)

## Sources

- CVE List: [CVE-2021-4287](https://www.cve.org/CVERecord?id=CVE-2021-4287), CVE Terms of Use, modified 2025-04-11
- GitHub Advisory Database: [GHSA-8m3f-g62j-3vx8](https://github.com/advisories/GHSA-8m3f-g62j-3vx8), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2021-4287](https://nvd.nist.gov/vuln/detail/CVE-2021-4287), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-788](https://osv.dev/vulnerability/PYSEC-2026-788), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2021-4287 · Whole record: https://cve.day/CVE-2021-4287.json · Rebuilt by cve.day 2026-11-25T22:58:08.014Z
