CVE-2026-48095: CWE-787: Out-of-bounds Write in mcmilk 7-Zip
A heap buffer overflow vulnerability exists in 7-Zip versions 26.00 and earlier due to an under-allocation in the NTFS compressed stream buffer. This flaw can lead to arbitrary code execution or application crashes when processing specially crafted NTFS images. The vulnerability arises from an undefined behavior in buffer size calculation that results in a 1-byte allocation overwritten by up to 256 MB of data. The issue is fixed in version 26.01.
AI Analysis
Technical Summary
CVE-2026-48095 is a heap buffer overflow in 7-Zip (mcmilk project) affecting versions 26.00 and prior. The vulnerability occurs in the NTFS handler's CInStream::GetCuSize() function, which calculates the compression-unit buffer size using a left shift operation on (BlockSizeLog + CompressionUnit). When a crafted image has ClusterSizeLog >= 28 and CompressionUnit == 4, the exponent reaches 32, causing undefined behavior that results in allocating only 1 byte for the buffer. Subsequently, ReadStream_FALSE writes up to 256 MB of attacker-controlled data into this undersized buffer, overwriting adjacent memory including the vtable pointer of the CInStream object. This enables vtable hijacking and potential arbitrary code execution or crashes. The NTFS handler is enabled by default and triggered by signature-based fallback matching, allowing exploitation regardless of file extension. On 32-bit builds, the overflow is unconditional; on 64-bit builds, it depends on a parallel 8 GB buffer allocation. The vulnerability is resolved in version 26.01.
Potential Impact
Successful exploitation can lead to arbitrary code execution or application crashes due to heap buffer overflow and vtable pointer overwrite. The vulnerability affects confidentiality, integrity, and availability of the affected system. It can be triggered by processing a crafted NTFS image during extraction or testing, regardless of file extension.
Mitigation Recommendations
Upgrade to 7-Zip version 26.01 or later, which fixes this vulnerability. There is no official patch or temporary fix other than upgrading. Until upgrading, avoid opening or extracting files from untrusted sources that may contain crafted NTFS images.
CVE-2026-48095: CWE-787: Out-of-bounds Write in mcmilk 7-Zip
Description
A heap buffer overflow vulnerability exists in 7-Zip versions 26.00 and earlier due to an under-allocation in the NTFS compressed stream buffer. This flaw can lead to arbitrary code execution or application crashes when processing specially crafted NTFS images. The vulnerability arises from an undefined behavior in buffer size calculation that results in a 1-byte allocation overwritten by up to 256 MB of data. The issue is fixed in version 26.01.
CVSS v3.1
Score 8.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-48095 is a heap buffer overflow in 7-Zip (mcmilk project) affecting versions 26.00 and prior. The vulnerability occurs in the NTFS handler's CInStream::GetCuSize() function, which calculates the compression-unit buffer size using a left shift operation on (BlockSizeLog + CompressionUnit). When a crafted image has ClusterSizeLog >= 28 and CompressionUnit == 4, the exponent reaches 32, causing undefined behavior that results in allocating only 1 byte for the buffer. Subsequently, ReadStream_FALSE writes up to 256 MB of attacker-controlled data into this undersized buffer, overwriting adjacent memory including the vtable pointer of the CInStream object. This enables vtable hijacking and potential arbitrary code execution or crashes. The NTFS handler is enabled by default and triggered by signature-based fallback matching, allowing exploitation regardless of file extension. On 32-bit builds, the overflow is unconditional; on 64-bit builds, it depends on a parallel 8 GB buffer allocation. The vulnerability is resolved in version 26.01.
Potential Impact
Successful exploitation can lead to arbitrary code execution or application crashes due to heap buffer overflow and vtable pointer overwrite. The vulnerability affects confidentiality, integrity, and availability of the affected system. It can be triggered by processing a crafted NTFS image during extraction or testing, regardless of file extension.
Mitigation Recommendations
Upgrade to 7-Zip version 26.01 or later, which fixes this vulnerability. There is no official patch or temporary fix other than upgrading. Until upgrading, avoid opening or extracting files from untrusted sources that may contain crafted NTFS images.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-20T18:40:45.834Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a22e1c9e29bf47b508136c6
Added to database: 06/05/2026, 14:48:41 UTC
Last enriched: 07/02/2026, 23:38:07 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 94
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.