CVEfocus › CVE database › CVE-2021-4287

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

CVSS 5.0 MediumEPSS 2.1% (higher than 83% of CVEs)Published 2022-12-27Updated 2025-04-11Assigner: VulDB

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.

CWE-61

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
4Fix pending
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04binwalkNot affected
vulnerable_code_not_present
Ubuntu 25.10binwalkNot affected
vulnerable_code_not_present
Ubuntu 24.04binwalkNot affected
vulnerable_code_not_present
Ubuntu 20.04binwalkFix pendingUBUNTU-CVE-2021-4287
Ubuntu 18.04binwalkFix pendingUBUNTU-CVE-2021-4287
Ubuntu 16.04binwalkFix pending
Ubuntu 14.04binwalkFix pending
Debian 14binwalkFixed2.3.3+dfsg1-1DEBIAN-CVE-2021-4287
Debian 13binwalkFixed2.3.3+dfsg1-1DEBIAN-CVE-2021-4287
Debian 12binwalkFixed2.3.3+dfsg1-1DEBIAN-CVE-2021-4287
PyPI librarybinwalkFixed2.3.3GHSA-8m3f-g62j-3vx8

What the vendor says

As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.