Excelize: A Zip64 uncompressed-size of 2^63 panics OpenFile/OpenReader
qax-os excelize
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/xuri/excelize/v2 Go |
|
|
| github.com/360EntSecGroup-Skylar/excelize/v2 Go |
| No fix yet |
qax-os excelize
| Product | Affected | Fixed in |
|---|---|---|
| github.com/xuri/excelize/v2 Go |
|
|
| github.com/360EntSecGroup-Skylar/excelize/v2 Go |
| No fix yet |
Excelize is a Go language library for reading and writing Microsoft Excel spreadsheets. From 2.1.0 to 2.11.0, a Zip64 uncompressed size with the high bit set is converted from uint64 to a negative int64 before signed size-limit checks and allocation. ReadZipReader obtains UncompressedSize64 through FileInfo.Size and passes the wrapped negative value to readFile. When a crafted Zip64 entry declares an uncompressed size from 2^63 through 2^64-1 and the workbook is opened, the negative size bypasses unzip limits and reaches make as a negative capacity, allowing an attacker to panic during workbook opening. No fixed version is available as of this review.
From the CVE record · GitHub_M
Excelize can convert a crafted Zip64 entry’s uncompressed size into a negative value, bypassing size checks. An attacker can cause a panic when the application opens a crafted workbook. The input does not specify an authentication requirement.
Check Go applications using github.com/xuri/excelize/v2 from 2.1.0 before 2.11.1-0.20260805032953-db93f8d89de7, or github.com/360EntSecGroup-Skylar/excelize/v2 from 2.1.0 onward.