Skip to content
OpenAdvisories
High · 7.8 CVE-2023-40481 EUVD-2023-45052GHSA-cxpp-vp7p-m7fw

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

Published May 3, 2024 · Updated Aug 2, 2024 · Assigned by zdi

Description

7-Zip SquashFS File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability. 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. Was ZDI-CAN-18589.

Affected products

VendorProductAffectedFixed
7-Zip 7-Zip 22.01 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 7zip 23.01+dfsg-1 —
Debian 13 7zip 23.01+dfsg-1 —
Debian 13 p7zip 16.02+transitional.1 —
Debian 12 7zip 22.01+really25.01+dfsg-0+deb12u1 —
Debian 12 p7zip 16.02+really25.01+dfsg-0+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS 7zip No fix yet —

Advisories 3

References