Advisory Details

August 23rd, 2023

7-Zip 7Z File Parsing Integer Underflow Remote Code Execution Vulnerability

ZDI-23-1165
ZDI-CAN-18588

CVE ID CVE-2023-31102
CVSS SCORE 7.8, AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
AFFECTED VENDORS 7-Zip
AFFECTED PRODUCTS 7-Zip
VULNERABILITY DETAILS

This vulnerability allows remote attackers to execute arbitrary code on affected installations of 7-Zip. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the parsing of 7Z files. The issue results from the lack of proper validation of user-supplied data, which can result in an integer underflow before writing to memory. An attacker can leverage this vulnerability to execute code in the context of the current process.

ADDITIONAL DETAILS 7-Zip has issued an update to correct this vulnerability. More details can be found at:
https://sourceforge.net/p/sevenzip/discussion/45797/thread/713c8a8269/
DISCLOSURE TIMELINE
  • 2022-11-21 - Vulnerability reported to vendor
  • 2023-08-23 - Coordinated public release of advisory
CREDIT goodbyeselene
BACK TO ADVISORIES