7.5high
Excelize: Unbounded spinCount in agile decryption burns CPU during OpenFile
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.45% (higher than 40% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jrfj-fhj2-jjvmGO-2026-6681
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| qax-os excelize | >= 2.3.1, <= 2.11.0 | CVE List |
| github.com/xuri/excelize/v2 (Go) | from 2.3.1 before 2.11.1-0.20260906004932-2badfcd5841d, before 2.11.1-0.20260906004932-2badfcd5841d | GitHub Advisory Database, Go Vulnerability Database |
| github.com/360EntSecGroup-Skylar/excelize/v2 (Go) | from 2.3.1 | Go Vulnerability Database |
| excelize excelize | from 2.3.1 up to 2.11.0 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
spinCount (crypt.go:98) is a plain int filled by a bare xml.Unmarshal of the file's own EncryptionInfo stream. Nothing bounds it.
A 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.
v2.5.0 spinCount=10000000 5.307s
v2.9.1 spinCount=10000000 5.444s
v2.11.0 spinCount=10000000 7.529s
v2.11.0 spinCount=100000000 58.654s
The loop arrived with crypt.go in v2.3.1 and is unchanged through v2.11.0.
Excel and LibreOffice write spinCount 100000, which costs 61ms here, so a ceiling well above the legitimate value would cost real files nothing.
This is availability only, and it is not a vulnerability for a program that only opens files its own operator produced.
Go Vulnerability Database
Excelize: Unbounded spinCount in agile decryption burns CPU during OpenFile in github.com/xuri/excelize
References
| https://github.com/qax-os/excelize/security/advisories/GHSA-jrfj-fhj2-jjvm | advisory, exploit, vendor-advisory, web | |
| https://github.com/qax-os/excelize/pull/2389 | issue-tracking, patch, web | |
| https://github.com/qax-os/excelize/commit/2badfcd5841d0d88b0ffea119f5a2f3c53b4910b | fix, patch, web | |
| https://github.com/qax-os/excelize | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-107219 changed 2026-10-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jrfj-fhj2-jjvm changed 2026-11-05 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-6681 changed 2026-11-05 | CC-BY-4.0 |
| NVD | CVE-2026-107219 changed 2026-10-13 | Public domain |