{
  "id": "cve-2026-48095",
  "title": "GHSL AI-agent index lists NTFS compressed-stream heap overflow in 7-Zip",
  "product": "7-Zip NTFS archive handler",
  "ai_system": "GitHub Security Lab AI agent (system not named in advisory)",
  "organization": "GitHub Security Lab",
  "summary": "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.",
  "ai_role": "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.",
  "disclosure_date": "2026-05-22",
  "ai_attribution_date": "2026-05-22",
  "classification": "disclosure",
  "classification_note": "The advisory documents a proof of concept and potential impact, with no claim of exploitation in the wild.",
  "cves": [
    "CVE-2026-48095"
  ],
  "source_url": "https://securitylab.github.com/advisories/GHSL-2026-140_7-Zip/",
  "ai_source_url": "https://securitylab.github.com/ai-agents/",
  "remediation": "fix documented",
  "remediation_note": "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.",
  "advisory_url": "https://securitylab.github.com/advisories/GHSL-2026-140_7-Zip/",
  "checked_date": "2026-11-14",
  "cvss": [
    {
      "cve": "CVE-2026-48095",
      "version": "3.1",
      "score": 8.8,
      "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/48xxx/CVE-2026-48095.json",
      "source_name": "GitHub_M (CNA; CVE Program record)",
      "checked_date": "2026-11-16"
    }
  ],
  "impacts": [
    {
      "cves": [
        "CVE-2026-48095"
      ],
      "consequences": [
        "code execution",
        "denial of service"
      ],
      "conditions": "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": "Exploitation in the wild is not established by the cited description.",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/48xxx/CVE-2026-48095.json",
      "checked_date": "2026-11-16"
    }
  ]
}
