GLSA-202309-07 : Binwalk: Multiple Vulnerabilities

high Nessus Plugin ID 181515

Description

The remote host is affected by the vulnerability described in GLSA-202309-07 (Binwalk: Multiple Vulnerabilities)

- 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. This vulnerability is associated with program files src/binwalk/plugins/unpfs.py. This issue affects binwalk from 2.1.2b through 2.3.3 included.
(CVE-2022-4510)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

All Binwalk users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose >=app-misc/binwalk-2.3.4

See Also

https://security.gentoo.org/glsa/202309-07

https://bugs.gentoo.org/show_bug.cgi?id=820614

https://bugs.gentoo.org/show_bug.cgi?id=903652

Plugin Details

Severity: High

ID: 181515

File Name: gentoo_GLSA-202309-07.nasl

Version: 1.2

Type: local

Published: 9/17/2023

Updated: 9/21/2023

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 5.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2022-4510

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 7

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:binwalk, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 9/17/2023

Vulnerability Publication Date: 1/26/2023

Reference Information

CVE: CVE-2022-4510