Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/xuri/excelize/v2
  4. ›
  5. CVE-2026-107215

CVE-2026-107215: Excelize: extractPart allocates attacker-controlled, unbounded and negative-sized buffers from CFB directory entries: remote panic / OOM DoS

October 8, 2026

extractPart allocates directly from the mscfb directory-entry size with no clamping (crypt.go:198, same missing bound at crypt.go:204):

buf := make([]byte, entry.Size)

entry.Size is the raw streamSize field from the attacker-controlled CFB directory entry (mscfb v1.0.8 fixFile, file.go:109-120: full uint64 → int64 for major version 4, low uint32 for v3). mscfb only detects short sector chains later, inside File.Read (file.go:485-489 “emergency brake”) — i.e. after the allocation. The zip path already enforces UnzipSizeLimit, and the KDF path bounds work with maxSpinCount; this path consults no limit at all.

References

  • github.com/advisories/GHSA-x2q3-8cjh-766f
  • github.com/qax-os/excelize/commit/5f636f9dcde55911f14290060b017f0cc88cd694
  • github.com/qax-os/excelize/pull/2396
  • github.com/qax-os/excelize/security/advisories/GHSA-x2q3-8cjh-766f
  • nvd.nist.gov/vuln/detail/CVE-2026-107215

Code Behaviors & Features

Detect and mitigate CVE-2026-107215 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.3.1 before 2.11.1-0.20260912113515-5f636f9dcde5

Fixed versions

  • 2.11.1-0.20260912113515-5f636f9dcde5

Solution

Upgrade to version 2.11.1-0.20260912113515-5f636f9dcde5 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-789: Memory Allocation with Excessive Size Value

Source file

go/github.com/xuri/excelize/v2/CVE-2026-107215.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:00 +0000.