CVE-2023-40481
published high CVSS 3.0 · 7.87-Zip SquashFS File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 7-Zip | — | 7-Zip22.01 · Other versions: unknown | Affected | Not stated | zdi |
| 7-zip | — | 7-zip22.01 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bullseye | p7zip | Advisory build | 16.02+really25.01+dfsg-0+deb11u1 | DLA-4576-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- zdi · cna
- Vector string
- CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| 7-Zip | 7-Zip | 22.01 (affected)Default: unknown | zdi · cna |
| 7-zip | 7-zip | 22.01 (affected)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-787 CWE-787: Out-of-bounds Write
References
2- vendor-provided URL https://sourceforge.net/p/sevenzip/discussion/45797/thread/713c8a8269/
- ZDI-23-1164 https://www.zerodayinitiative.com/advisories/ZDI-23-1164/
Provider assertions
3zdi · cna
7-Zip SquashFS File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 088b23659be3bf35037d3a05c2025192f4038eafc250711d45905baacfb91cdb
- Ingested
- 23 Sep 2026, 08:11:15 UTC
- Source record
- Official CVE record