Excelize: Unbounded Row Index Allocation in Worksheet Parser (checkSheet OOM/Panic DoS)
Description
Excelize is a Go language library for reading and writing Microsoft Excel spreadsheets. Prior to 2.11.0, the checkSheet() function in github.com/xuri/excelize/v2 uses an attacker-controlled XML attribute value directly as the length argument to make([]xlsxRow, row) without validating it against the Excel row limit (TotalRows = 1,048,576). A specially crafted XLSX file can trigger two denial-of-service variants: (A) an out-of-memory process kill when r=2147483647 forces a ~16 GB allocation attempt, and (B) a runtime panic via out-of-bounds slice indexing when r=-1. Any service that opens attacker-supplied XLSX files and calls GetCellValue is affected. No authentication is required. This issue is fixed in version 2.11.0.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/xuri/excelize/v2Go | < 2.11.0 | 2.11.0 |
Affected products
1Patches
Vulnerability mechanics
References
4- github.com/advisories/GHSA-h69g-9hx6-f3v4ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-54063ghsaADVISORY
- github.com/qax-os/excelize/releases/tag/v2.11.0ghsax_refsource_MISCWEB
- github.com/qax-os/excelize/security/advisories/GHSA-h69g-9hx6-f3v4ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.