Description
In vulnerable versions of Excelize, GetConditionalFormats assumes that conditional formatting contains the required child elements in sufficient numbers. Reading a crafted worksheet with missing or too few elements may cause a panic from an out-of-bounds access or a nil pointer dereference.
Potential impact
A request or process that reads conditional formatting from an external spreadsheet may terminate, causing denial of service.
Remediation
Update github.com/xuri/excelize/v2 to v2.11.1 or later. Process untrusted spreadsheets in an environment that limits resource use and contains the effects of document processing failures.
Examples
The following examples show a dependency declaration in go.mod.
Before
require github.com/xuri/excelize/v2 v2.10.1
After
require github.com/xuri/excelize/v2 v2.11.1
Update go.sum, then rebuild and deploy using the fixed module.