{"id":"CVE-2026-107219","aliases":["CVE-2026-107219","GHSA-jrfj-fhj2-jjvm","GO-2026-6681"],"related":[],"kind":"vulnerability","state":"published","title":"Excelize: Unbounded spinCount in agile decryption burns CPU during OpenFile","summary":"Excelize is a Go language library for reading and writing Microsoft Excel spreadsheets. From 2.3.1 to 2.11.0, agile decryption accepts an attacker-controlled spinCount and performs that many password-key derivation iterations before verifier validation. OpenFile reaches agileDecrypt, which passes the unbounded spinCount to convertPasswdToKey before password verification. When a crafted OLE encrypted-workbook header supplies an excessive spinCount and the file is opened, the key-derivation loop performs unbounded attacker-selected work and cannot be cancelled, allowing an attacker to consume a CPU core for an attacker-controlled duration. No fixed version is available as of this review.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Excelize is a Go language library for reading and writing Microsoft Excel spreadsheets. From 2.3.1 to 2.11.0, agile decryption accepts an attacker-controlled spinCount and performs that many password-key derivation iterations before verifier validation. OpenFile reaches agileDecrypt, which passes the unbounded spinCount to convertPasswdToKey before password verification. When a crafted OLE encrypted-workbook header supplies an excessive spinCount and the file is opened, the key-derivation loop performs unbounded attacker-selected work and cannot be cancelled, allowing an attacker to consume a CPU core for an attacker-controlled duration. No fixed version is available as of this review.","source":"cvelist"},{"lang":"en","text":"Opening a file whose first eight bytes are the OLE magic number sends excelize down the decryption path whether or not the caller set a password, or supports encrypted workbooks at all. `openReaderAt` (excelize.go:198-215) branches on the header alone, and `agileDecrypt` calls `convertPasswdToKey` before the verifier hash is checked, so the key-derivation loop runs `spinCount` times regardless.\n\n`spinCount` (crypt.go:98) is a plain `int` filled by a bare `xml.Unmarshal` of the file's own EncryptionInfo stream. Nothing bounds it.\n\nA 3072-byte file with spinCount 100000000 makes `OpenFile` take 58.65s on v2.11.0 with default options, then return `zip: not a valid zip file`. It is linear at about 0.6 microseconds per iteration and the attacker picks the number, so 1e9 is roughly ten minutes. Nothing on the path takes a `context.Context`, so the caller cannot cancel it; in an HTTP handler the write timeout returns a response while the goroutine keeps spinning. Memory stays flat at 24 MB, so nothing reclaims it either.\n\n```\nv2.5.0   spinCount=10000000   5.307s\nv2.9.1   spinCount=10000000   5.444s\nv2.11.0  spinCount=10000000   7.529s\nv2.11.0  spinCount=100000000  58.654s\n```\n\nThe loop arrived with `crypt.go` in v2.3.1 and is unchanged through v2.11.0.\n\nExcel and LibreOffice write spinCount 100000, which costs 61ms here, so a ceiling well above the legitimate value would cost real files nothing. \n\nThis is availability only, and it is not a vulnerability for a program that only opens files its own operator produced.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Excelize: Unbounded spinCount in agile decryption burns CPU during OpenFile in github.com/xuri/excelize","format":"markdown","source":"go"}],"published":"2026-10-07T18:33:34.460Z","modified":"2026-11-05T23:25:50.587Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":">= 2.3.1, <= 2.11.0","status":"affected"}],"vendor":"qax-os","product":"excelize","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.3.1","status":"affected","fixed":"2.11.1-0.20260906004932-2badfcd5841d"}],"ecosystem":"Go","package":"github.com/xuri/excelize/v2","purl":"pkg:golang/github.com/xuri/excelize/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.3.1","status":"affected"}],"ecosystem":"Go","package":"github.com/360EntSecGroup-Skylar/excelize/v2","purl":"pkg:golang/github.com/360EntSecGroup-Skylar/excelize/v2","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.11.1-0.20260906004932-2badfcd5841d"}],"ecosystem":"Go","package":"github.com/xuri/excelize/v2","purl":"pkg:golang/github.com/xuri/excelize/v2","source":"go"},{"ranges":[{"status":"affected","introduced":"2.3.1","lastAffected":"2.11.0"}],"vendor":"excelize","product":"excelize","cpe":"cpe:2.3:a:excelize:excelize:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/qax-os/excelize/security/advisories/GHSA-jrfj-fhj2-jjvm","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/qax-os/excelize/pull/2389","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/qax-os/excelize/commit/2badfcd5841d0d88b0ffea119f5a2f3c53b4910b","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/qax-os/excelize","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-07T19:44:53.093Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-107219","url":"https://www.cve.org/CVERecord?id=CVE-2026-107219","licence":"CVE Terms of Use","modified":"2026-10-07T19:45:16.819Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jrfj-fhj2-jjvm","url":"https://github.com/advisories/GHSA-jrfj-fhj2-jjvm","licence":"CC-BY-4.0","modified":"2026-11-05T23:25:50.587Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6681","url":"https://pkg.go.dev/vuln/GO-2026-6681","licence":"CC-BY-4.0","modified":"2026-11-05T23:15:11.903Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-107219","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107219","licence":"Public domain","modified":"2026-10-13T14:23:15.890Z"}],"updatedAt":"2026-11-25T22:59:43.083Z","epss":{"score":0.00445,"percentile":0.40466,"date":"2026-12-01T12:00:22.000Z"}}