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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | binwalk | 2.3.3+dfsg1-1 | DEBIAN-CVE-2021-4287 |
| Debian:13 | binwalk | 2.3.3+dfsg1-1 | DEBIAN-CVE-2021-4287 |
| Debian:14 | binwalk | 2.3.3+dfsg1-1 | DEBIAN-CVE-2021-4287 |
| PyPI | binwalk | 2.3.3 | GHSA-8m3f-g62j-3vx8 |
| PyPI | binwalk | 2.3.3 | PYSEC-2026-788 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://vuldb.com/?id.216876 vdb-entry
- https://vuldb.com/?ctiid.216876 signature, permissions-required
- https://github.com/ReFirmLabs/binwalk/pull/556 issue-tracking
- https://github.com/ReFirmLabs/binwalk/commit/fa0c0bd59b8588814756942fe4cb5452e76c1dcd patch
- https://github.com/ReFirmLabs/binwalk/releases/tag/v2.3.3 patch