Heap-based buffer overflow in 7-Zip - CVE-2023-52168

 

Heap-based buffer overflow in 7-Zip - CVE-2023-52168

Published: July 3, 2024


Vulnerability identifier: #VU93730
CSH Severity: High
CVSS v4 BT: 5.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]
CVE-ID: CVE-2023-52168
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the NtfsHandler.cpp NTFS handler when processing archives. A remote attacker can trick the victim to open a specially crafted archive, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

7-Zip
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Enterprise Storage
SUSE Linux Enterprise Server 15 SP2 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS
SUSE Linux Enterprise Server 15 SP3 LTSS
SUSE Linux Enterprise Desktop 15 SP4 LTSS
SUSE Linux Enterprise Server 15 SP4 LTSS
Basesystem Module
openSUSE Leap
openEuler
Ubuntu
7zip (Ubuntu package)
7zip-standalone (Ubuntu package)
p7zip-debugsource
p7zip
p7zip-debuginfo
p7zip-full
p7zip-full-debuginfo
p7zip-doc

How to mitigate CVE-2023-52168

Install updates from vendor's website.

7-Zip - update to 24.01
7zip (Ubuntu package) - update to Ubuntu Pro
7zip-standalone (Ubuntu package) - update to Ubuntu Pro
p7zip-debugsource - addressed in versions 9.20.1-7.6.1, 16.02-150200.14.12.1
p7zip - addressed in versions 9.20.1-7.6.1, 16.02-150200.14.12.1
p7zip-debuginfo - update to 9.20.1-7.6.1
p7zip - update to 16.02-8
p7zip-debuginfo - update to 16.02-8
p7zip-debugsource - update to 16.02-8
p7zip-full - update to 16.02-150200.14.12.1
p7zip-full-debuginfo - update to 16.02-150200.14.12.1
p7zip-doc - update to 16.02-150200.14.12.1

External References

Related Security Bulletins