CPU exhaustion when Excelize processes encrypted documents (GO-2026-6681)

CPU exhaustion when Excelize processes encrypted documents (GO-2026-6681)

Description

Vulnerable versions of Excelize do not sufficiently limit spinCount, the number of key derivation iterations specified in an encrypted document. An attacker can set a large value to consume excessive CPU time when the document is opened. Depending on the file format, this processing may occur even if the caller has not set a password.

Potential impact

A small number of malicious documents may occupy worker threads for long periods, reducing the responsiveness of document processing or the service. A request timeout alone does not guarantee that the underlying computation stops.

Remediation

Update github.com/xuri/excelize/v2 to v2.11.1 or later. Process external documents in an environment with resource limits, and limit concurrent tasks.

Examples

The following examples show a dependency declaration in go.mod.

Before

go
require github.com/xuri/excelize/v2 v2.10.1

After

go
require github.com/xuri/excelize/v2 v2.11.1

Update go.sum, then rebuild and deploy using the fixed module.

References