7-Zip < 24.01 Heap-based Buffer Overflow

high Nessus Plugin ID 209231

Synopsis

The 7-zip instance installed on the remote host is affected by a heap based buffer overflow vulnerability.

Description

The version of 7-Zip installed on the remote Windows host is below 24.01. It is, therefore, affected by multiple vulnerabilities:

- The NtfsHandler.cpp NTFS handler in 7-Zip before 24.01 (for 7zz) contains a heap-based buffer overflow that allows an attacker to overwrite two bytes at multiple offsets beyond the allocated buffer size:
buffer+512*i-2, for i=9, i=10, i=11, etc. (CVE-2023-52168)

- The NtfsHandler.cpp NTFS handler in 7-Zip before 24.01 (for 7zz) contains an out-of-bounds read that allows an attacker to read beyond the intended buffer. The bytes read beyond the intended buffer are presented as a part of a filename listed in the file system image. This has security relevance in some known web-service use cases where untrusted users can upload files and have them extracted by a server-side 7-Zip process. (CVE-2023-52169)

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

Solution

Upgrade to 7-zip version 24.01 or later.

See Also

https://www.openwall.com/lists/oss-security/2024/07/03/10

Plugin Details

Severity: High

ID: 209231

File Name: 7zip_24_01.nasl

Version: 1.2

Type: local

Agent: windows

Family: Windows

Published: 10/17/2024

Updated: 10/18/2024

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 5.3

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

CVSS Score Source: CVE-2023-52168

CVSS v3

Risk Factor: High

Base Score: 8.4

Temporal Score: 7.3

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

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

Vulnerability Information

CPE: cpe:/a:7-zip:7-zip

Required KB Items: SMB/Registry/Enumerated, installed_sw/7-Zip

Exploit Ease: No known exploits are available

Patch Publication Date: 1/31/2024

Vulnerability Publication Date: 7/3/2024

Reference Information

CVE: CVE-2023-52168, CVE-2023-52169

CWE: 122