Advisory Details

August 23rd, 2023

7-Zip SquashFS File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability

ZDI-23-1164
ZDI-CAN-18589

CVE ID CVE-2023-40481
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 SQFS files. The issue results from the lack of proper validation of user-supplied data, which can result in a write past the end of an allocated buffer. 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