AI Science Tracker

GHSL AI-agent index lists NTFS compressed-stream heap overflow in 7-Zip

7-Zip NTFS archive handler · AI involvement attributed to GitHub Security Lab AI agent (system not named in advisory)

Finding and attribution

An undefined 32-bit shift can under-allocate the NTFS compressed-stream buffer to one byte; reading attacker-controlled compressed data can then overflow the heap.

Product: 7-Zip NTFS archive handler. AI system: GitHub Security Lab AI agent (system not named in advisory). Team / organization: GitHub Security Lab.

CVE identifiers: CVE-2026-48095.

AI and human contribution (source account): GHSL’s primary AI-agent index lists the advisory among findings discovered with AI agents. The individual advisory credits Jaroslav Lobačevski but does not specify an agent or per-finding contribution; attribution is index-level only.

Human involvement is only described where the source account establishes it; unknown involvement does not mean none. Vendor confirmation of a flaw does not confirm every claim about AI contribution.

Discovery context: The advisory documents a proof of concept and potential impact, with no claim of exploitation in the wild.

Remediation status: fix documented. Fixed in 7-Zip v26.01 released 2026-04-27. On 64-bit systems the 8 GB secondary allocation may fail on lower-memory systems, limiting impact there.

A source-documented fix does not establish installed patches or current safety. Source checking does not independently reproduce the finding or establish observed exploitation.

Disclosed 22 May 2026. AI attribution dated 22 May 2026. Sources checked 14 Nov 2026; these are separate dates, not a live installation check.

Recorded CVSS: High · highest recorded score 8.8. Documented technical effects: code execution, denial of service.

Severity, consequences and exploitation evidence

Case grouping uses the highest recorded CVSS score, with its version-specific severity band. It is descriptive, not a combined or editorial risk index. All recorded assessments remain below; scores from different versions and sources may disagree. CVSS specifications define version-specific scoring and severity bands.

CVE-2026-48095: code execution, denial of service.
Prerequisites / affected scope: CNA description: 7-Zip is a file archiver with a high compression ratio. Versions 26.00 and prior contain a heap buffer overflow vulnerability caused by an under-allocation in the NTFS compressed stream buffer (GetCuSize shift UB), potentially allowing attackers to cause arbitrary code execution or application crashes. CInStream::GetCuSize() in the NTFS handler computes the compression-unit buffer size as (UInt32)1 << (BlockSizeLog + CompressionUnit), and a crafted image with ClusterSizeLog >= 28 and CompressionUnit == 4 drives the exponent to 32, which is undefined behavior and collapses on x86/x64 so _inBuf is allocated as 1 byte. ReadStream_FALSE then writes up to 256 MB of attacker-controlled data into that 1-byte buffer in 64 KB iterations, and because the CInStream object sits only 304 bytes after _inBuf, its vtable pointer is overwritten and the next dispatched call achieves a vtable hijack. On 32-bit builds the overflow is unconditionally reached; on 64-bit it requires the parallel 8 GB _outBuf allocation to succeed, otherwise failing closed to denial of service. The NTFS handler is enabled by default in stock 7z.dll and, via signature-based fallback matching "NTFS " at offset 3, will open a crafted image regardless of file extension during extraction or testing. Version 26.01 fixes the issue..
Exploitation evidence: Exploitation in the wild is not established by the cited description.. Impact source · checked 16 Nov 2026.

Documented fix: Fixed in 7-Zip v26.01 released 2026-04-27. On 64-bit systems the 8 GB secondary allocation may fail on lower-memory systems, limiting impact there.

Original evidence

Download this source record (JSON)

Open this case in the interactive tracker · Browse all static security cases