{"schema":"threatline.record/2","record":{"id":"CVE-2026-107219","aliases":["GHSA-jrfj-fhj2-jjvm"],"summary":"Excelize: Unbounded spinCount in agile decryption burns CPU during OpenFile","details":"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.","categories":["Libraries & packages"],"product":"github.com/xuri/excelize/v2","vendor":"qax-os","ecosystem":"go","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-jrfj-fhj2-jjvm","source_modified_at":"2026-10-07T20:23:23Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"go","name":"github.com/xuri/excelize/v2"},"range":">= 2.3.1, < 2.11.1-0.20260906004932-2badfcd5841d"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-107219","source_modified_at":"2026-10-07T19:45:16.819Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"excelize","vendor":"qax-os","versions":[{"version":">= 2.3.1, <= 2.11.0","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-jrfj-fhj2-jjvm","source_modified_at":"2026-10-07T20:30:05.832809888Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"github.com/xuri/excelize/v2","ecosystem":"Go","purl":"pkg:golang/github.com/xuri/excelize/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.3.1"},{"fixed":"2.11.1-0.20260906004932-2badfcd5841d"}]}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-jrfj-fhj2-jjvm","source_modified_at":"2026-10-07T20:23:23Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"go","name":"github.com/xuri/excelize/v2"},"version":"2.11.1-0.20260906004932-2badfcd5841d"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-jrfj-fhj2-jjvm","source_modified_at":"2026-10-07T20:30:05.832809888Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"github.com/xuri/excelize/v2","ecosystem":"Go","purl":"pkg:golang/github.com/xuri/excelize/v2"},"version":"2.11.1-0.20260906004932-2badfcd5841d"}],"cvss":7.5,"severity":"High","kev":{"listed":false},"epss":{"probability":0.00338,"percentile":0.26068,"score_date":"2026-10-23"},"published_at":"2026-10-07T18:33:34.460Z","modified_at":"2026-10-07T20:30:05.832809888Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-jrfj-fhj2-jjvm","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-07T20:23:23Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-107219","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-07T19:45:16.819Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-jrfj-fhj2-jjvm","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-07T20:30:05.832809888Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-107219","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/qax-os/excelize/security/advisories/GHSA-jrfj-fhj2-jjvm","tags":["x_refsource_CONFIRM"]},{"source":"CVE List","url":"https://github.com/qax-os/excelize/pull/2389","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/qax-os/excelize/commit/2badfcd5841d0d88b0ffea119f5a2f3c53b4910b","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-jrfj-fhj2-jjvm","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial","assessed_at":"2026-10-07T19:44:53.093795Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-07T20:30:05.832809888Z","content_hash":"17993e5aef36baa03ead0fbece10b483c02d02c1b2fb36f452a71f33f9eec849"}}
