{"id":"CVE-2026-59162","summary":"Excelize: Negative shared-string index causes panic in GetCellValue and GetRows","details":"Excelize is a Go language library for reading and writing Microsoft Excel spreadsheets. Prior to 2.11.0, Excelize parses shared-string cell values with strconv.Atoi and checks only the upper bound before indexing the shared string slice, allowing an XLSX file containing a shared-string cell with -1 to trigger sharedStrings[-1] and panic when read through GetCellValue or GetRows. This issue is fixed in version 2.11.0.","aliases":["GHSA-fx5j-qcqg-grpf"],"modified":"2026-07-18T03:47:29.414130027Z","published":"2026-07-10T15:51:26.078Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59162.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-248","CWE-755"]},"references":[{"type":"WEB","url":"https://github.com/qax-os/excelize/releases/tag/v2.11.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59162.json"},{"type":"ADVISORY","url":"https://github.com/qax-os/excelize/security/advisories/GHSA-fx5j-qcqg-grpf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59162"},{"type":"FIX","url":"https://github.com/qax-os/excelize/commit/93f0b3caed37f21ef5079e3259c6c21dcfe68453"},{"type":"FIX","url":"https://github.com/qax-os/excelize/pull/2331"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/qax-os/excelize","events":[{"introduced":"0"},{"fixed":"90ff348959dd842cbf3a4fbd93a78afbe18db476"},{"fixed":"93f0b3caed37f21ef5079e3259c6c21dcfe68453"}],"database_specific":{"cpe":"cpe:2.3:a:excelize:excelize:*:*:*:*:*:go:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.11.0"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["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","v1.4.1","v1.4.0","v1.3.0","v1.2.0","v1.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59162.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"}]}