High severity · published May 3, 2024
CVE-2023-40481
7-Zip SquashFS File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability
7.8
CVSS
13.9%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)13.9% · higher than 97% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
7Z
7-zip · 7-zip
22.01 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-40481
CVE.org
https://www.cve.org/CVERecord?id=CVE-2023-40481
Product
https://sourceforge.net/p/sevenzip/discussion/45797/thread/713c8a8269/
Third Party Advisory
https://www.zerodayinitiative.com/advisories/ZDI-23-1164/
More from 7-zip
7.0
CVE-2025-0411
7-Zip Mark-of-the-Web Bypass Vulnerability
8.8
CVE-2026-48095
GHSL-2026-140_7-Zip: 7-Zip has a heap buffer overflow via NTFS compressed stream buffer under-allocation
8.8
CVE-2018-10172
7-Zip through 18.01 on Windows implements the "Large memory pages" option by calling the LsaAddAccountRights function to add the SeLockMemoryPrivilege privilege to the user's…
8.8
CVE-2016-2335
The CInArchive::ReadFileItem method in Archive/Udf/UdfIn.cpp in 7zip 9.20 and 15.05 beta and p7zip allows remote attackers to cause a denial of service (out-of-bounds read) or…
8.1
CVE-2026-48092
7-Zip SquashFS Fragment Offset Overflow (GHSL-2026-116)
