Vulnerability · Published Dec 27, 2022 · Assigned by VulDB

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

Medium 5.0

In plain English

A medium-severity security flaw in binwalk from ReFirm Labs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 82% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.0Medium
Exploit odds (30 days)2.1%top 17.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12binwalk2.3.3+dfsg1-1DEBIAN-CVE-2021-4287
Debian:13binwalk2.3.3+dfsg1-1DEBIAN-CVE-2021-4287
Debian:14binwalk2.3.3+dfsg1-1DEBIAN-CVE-2021-4287
PyPIbinwalk2.3.3GHSA-8m3f-g62j-3vx8
PyPIbinwalk2.3.3PYSEC-2026-788

Affected products (as reported)

VendorProductVersions
ReFirm Labs binwalk 2.3.02.3.12.3.2

Weakness: CWE-61 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

References