| Name | CVE-2023-40481 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| 7zip (PTS) | bookworm | 22.01+dfsg-8+deb12u1 | vulnerable |
| trixie | 25.01+dfsg-1~deb13u1 | fixed |
| forky, sid | 26.00+dfsg-2 | fixed |
| p7zip (PTS) | bookworm, bullseye | 16.02+dfsg-8 | vulnerable |
| trixie | 16.02+transitional.1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| 7zip | source | (unstable) | 23.01+dfsg-1 | | | |
| p7zip | source | (unstable) | 16.02+transitional.1 | | | |
Notes
[bookworm] - 7zip <no-dsa> (Minor issue; will be fixed via point release)
https://www.zerodayinitiative.com/advisories/ZDI-23-1164/
https://sourceforge.net/p/sevenzip/discussion/45797/thread/713c8a8269/
Since p7zip/16.02+transitional.1 src:p7zip is only a empty source package
depending on 7zip. Mark this version as fixed version.