Excelize: a row whose earlier cell has a higher column reference than its last cell panics index out of range on almost every worksheet read API
Excelize is a Go language library for reading and writing Microsoft Excel spreadsheets. From 2.0.0 to 2.11.0, checkRow sizes its target cell slice from the last cell in XML document order and then re-scatters every cell by its explicit column reference. GetCellValue reaches workSheetReader and checkRow, where targetList is too short for an earlier out-of-order cell. When a crafted row places a higher-column cell before a lower-column final cell and a non-streaming worksheet API reads the sheet, the earlier cell's column index exceeds the slice length derived from the final cell, allowing an attacker to cause an unrecovered panic and terminate the process. No fixed version is available as of this review.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-107221
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 03:09 UTC · Revision 1
Source evidence
Excelize: a row whose earlier cell has a higher column reference than its last cell panics index out of range on almost every worksheet read API
core-osv · Original sourcePublished 7 Oct 2026, 18:41 UTC
Excelize is a Go language library for reading and writing Microsoft Excel spreadsheets. From 2.0.0 to 2.11.0, checkRow sizes its target cell slice from the last cell in XML document order and then re-scatters every cell by its explicit column reference. GetCellValue reaches workSheetReader and checkRow, where targetList is too short for an earlier out-of-order cell. When a crafted row places a higher-column cell before a lower-column final cell and a non-streaming worksheet API reads the sheet, the earlier cell's column index exceeds the slice length derived from the final cell, allowing an attacker to cause an unrecovered panic and terminate the process. No fixed version is available as of this review.
osv:CVE-2026-107221
Complete source record
{
"id": "e63b8f18dad4c0ef85a28f6aa59c8d3fe1bbf928e9778e054de8a6b82f626f96",
"url": "https://osv.dev/vulnerability/CVE-2026-107221",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Excelize: a row whose earlier cell has a higher column reference than its last cell panics index out of range on almost every worksheet read API",
"summary": "Excelize is a Go language library for reading and writing Microsoft Excel spreadsheets. From 2.0.0 to 2.11.0, checkRow sizes its target cell slice from the last cell in XML document order and then re-scatters every cell by its explicit column reference. GetCellValue reaches workSheetReader and checkRow, where targetList is too short for an earlier out-of-order cell. When a crafted row places a higher-column cell before a lower-column final cell and a non-streaming worksheet API reads the sheet, the earlier cell's column index exceeds the slice length derived from the final cell, allowing an attacker to cause an unrecovered panic and terminate the process. No fixed version is available as of this review.",
"evidence": "osv:CVE-2026-107221",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-107221",
"aliases": [
"CVE-2026-107221",
"GHSA-8mcq-6wmr-jrjv"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/qax-os/excelize",
"type": "GIT",
"events": [
{
"introduced": "b1f632d4084130628f10906ff6a7bb55022e4c08"
},
{
"fixed": "46a5eb289448e40fbc7d3294589b03861fb822f0"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:excelize:excelize:*:*:*:*:*:go:*:*",
"range": [
{
"introduced": "2.0.0"
},
{
"last_affected": "2.11.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "46a5eb289448e40fbc7d3294589b03861fb822f0"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v2.11.0",
"v2.10.1",
"v2.10.0",
"v2.9.1",
"v2.9.0",
"v2.8.1",
"v2.8.0",
"v2.7.1",
"v2.7.0",
"v2.6.1",
"v2.6.0",
"v2.5.0",
"v2.4.1",
"v2.4.0",
"v2.3.2",
"v2.3.1",
"v2.3.0",
"v2.2.0",
"v2.1.0",
"v2.0.2",
"v2.0.1",
"v2.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-107221.json"
}
}
],
"modified": "2026-10-28T02:30:53.362152208Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107221.json",
"https://github.com/qax-os/excelize/security/advisories/GHSA-8mcq-6wmr-jrjv",
"https://nvd.nist.gov/vuln/detail/CVE-2026-107221",
"https://github.com/qax-os/excelize/commit/46a5eb289448e40fbc7d3294589b03861fb822f0",
"https://github.com/qax-os/excelize/pull/2376"
],
"provider_metadata": {
"cwe_ids": [
"CWE-787"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107221.json"
}
},
"related_cves": [
{
"value": "CVE-2026-107221",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 522085,
"published_at": "2026-10-07T18:41:46.047+00:00"
}