{"id":"CVE-2026-107218","summary":"Excelize: RIGHT() on supplementary-plane text slices with a negative index and panics","details":"Excelize is a Go language library for reading and writing Microsoft Excel spreadsheets. From 2.10.1 to 2.11.0, RIGHT validates the requested length with UTF-16 code-unit counts but slices a rune array using Unicode code-point counts. RIGHT reaches leftRight through CalcCellValue, where countUTF16String validates one unit but utf8.RuneCountInString supplies the slice index in another. When RIGHT evaluates supplementary-plane text with a requested character count between the rune count and UTF-16 code-unit count, the inconsistent units produce a negative rune-slice index, allowing an attacker to panic during formula evaluation. No fixed version is available as of this review.","aliases":["GHSA-8jjq-8j9w-m2v6"],"modified":"2026-10-08T10:45:23.636440604Z","published":"2026-10-07T18:29:38.606Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107218.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-129"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107218.json"},{"type":"FIX","url":"https://github.com/qax-os/excelize/commit/ecd99d761fe0489f1ed308e2f7dc2e0502d1a396"},{"type":"FIX","url":"https://github.com/qax-os/excelize/pull/2390"},{"type":"ADVISORY","url":"https://github.com/qax-os/excelize/security/advisories/GHSA-8jjq-8j9w-m2v6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107218"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/qax-os/excelize","events":[{"introduced":"5ad5ab3af0054c55bdce09f1530085600e9f2e45"},{"last_affected":"90ff348959dd842cbf3a4fbd93a78afbe18db476"}],"database_specific":{"extracted_events":[{"introduced":"2.10.1"},{"last_affected":"2.11.0"}],"source":"AFFECTED_FIELD"}}],"versions":["v2.11.0","v2.10.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-107218.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}