# CVE-2023-40481: 7zip: 7-Zip SquashFS File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability

CVE-2023-40481 is fixed in 2 products on 1 platform, first by DEBIAN-CVE-2023-40481, released May 3, 2024. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2023-40481
- Priority: High
- CVSS: 7.8 (high)
- EPSS: 0.1384
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 3, 2024

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | 7zip Debian 12.15 (bookworm) | 22.01+really25.01+dfsg-0+deb12u1 | [DEBIAN-CVE-2023-40481](https://patchblox.com/security/data/fix/linux/debian-cve-2023-40481.md) | May 3, 2024 |
| Linux | 7zip Debian 13.5 (trixie) | 23.01+dfsg-1 | [DEBIAN-CVE-2023-40481](https://patchblox.com/security/data/fix/linux/debian-cve-2023-40481.md) | May 3, 2024 |
| Linux | 7zip Debian 14 | 23.01+dfsg-1 | [DEBIAN-CVE-2023-40481](https://patchblox.com/security/data/fix/linux/debian-cve-2023-40481.md) | May 3, 2024 |
| Linux | p7zip Debian 12.15 (bookworm) | 16.02+really25.01+dfsg-0+deb12u1 | [DEBIAN-CVE-2023-40481](https://patchblox.com/security/data/fix/linux/debian-cve-2023-40481.md) | May 3, 2024 |
| Linux | p7zip Debian 13.5 (trixie) | 16.02+transitional.1 | [DEBIAN-CVE-2023-40481](https://patchblox.com/security/data/fix/linux/debian-cve-2023-40481.md) | May 3, 2024 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
