Panic via negative shared-string index in github.com/xuri/excelize
In github.com/xuri/excelize/v2, parsing a spreadsheet cell with a negative shared-string index causes a runtime panic. The shared-string lookup in xlsxC.getValueFrom checks only the upper bound of the parsed index against the shared-string slice length, causing negative indices (such as -1) to bypass validation and trigger an out-of-bounds slice access when reading cells via APIs such as GetCellValue or GetRows.
GO-2026-6452
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GO-2026-6452
github.com/xuri/excelize/v2
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 2.11.0
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.11.0"
}
]
}
],
"package": {
"name": "github.com/xuri/excelize/v2",
"purl": "pkg:golang/github.com/xuri/excelize/v2",
"ecosystem": "Go"
},
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2026-6452.json"
},
"ecosystem_specific": {
"imports": [
{
"path": "github.com/xuri/excelize/v2",
"symbols": [
"Cols.Rows",
"File.AddPicture",
"File.AddPictureFromBytes",
"File.AddPivotTable",
"File.AddSlicer",
"File.AddTable",
"File.CalcCellValue",
"File.DuplicateRow",
"File.DuplicateRowTo",
"File.GetCellFormula",
"File.GetCellType",
"File.GetCellValue",
"File.GetCols",
"File.GetMergeCells",
"File.GetPictureCells",
"File.GetPictures",
"File.GetRows",
"File.InsertCols",
"File.InsertRows",
"File.RemoveCol",
"File.RemoveRow",
"File.SearchSheet",
"Rows.Columns",
"StreamWriter.AddTable",
"formulaFuncs.ANCHORARRAY",
"formulaFuncs.FORMULATEXT",
"formulaFuncs.INDIRECT",
"formulaFuncs.ISFORMULA",
"xlsxC.getValueFrom"
]
}
]
}
}
]- Related CVEs
- CVE-2026-59162
Source reference:
/aliases
Publisher severity
No explicit severity was provided.
- Event
- #14237 · Revision 1
- Added to Heist Feed
- Publisher date