Oct 8, 2026·6 min read·30 visits
A vulnerability in Excelize allows unauthenticated remote attackers to trigger a sustained Denial of Service (100% CPU exhaustion) by uploading an Excel file containing a row index that exceeds the platform's architectural maximum.
An algorithmic complexity vulnerability (CWE-770) in the Excelize library allows remote attackers to cause resource exhaustion (100% CPU usage) via a crafted Microsoft Excel spreadsheet. This occurs because the look-ahead row index parsing in Rows.Columns() fails to enforce upper boundary limits, enabling an out-of-bounds row index to trigger an infinite seek loop inside the Rows iterator.
Excelize is an open-source Go language library designed for reading, writing, and processing Microsoft Excel spreadsheets. The library is optimized for handling high-volume data structures and relies heavily on a streaming XML tokenizer to limit memory consumption when parsing large OpenXML workbooks.
Applications that accept user-uploaded files often leverage Excelize to parse spreadsheet data on the backend. This exposes an attack surface where untrusted input files are parsed automatically. If a worksheet contains structural or architectural violations in its XML metadata, the parsing engine must resolve these states cleanly without exhausting host resources.
This vulnerability, tracked as CVE-2026-107212, is an algorithmic complexity flaw within the look-ahead logic of the row processing module. An attacker can supply a crafted Excel document where the row index attribute deviates from sequential ordering and exceeds the architectural row limit. This causes the internal row iterator to enter an unbounded processing loop, resulting in persistent CPU exhaustion.
Microsoft Excel spreadsheets limit the maximum index of a worksheet row to 1,048,576, which is defined in Excelize as the constant TotalRows. To traverse the underlying XML document sequentially, Excelize couples two main functions: Rows.Next() and Rows.Columns(). While Rows.Next() verifies that the index does not exceed this boundary, the look-ahead logic inside Rows.Columns() contains a distinct code path that reads index values directly.
When Rows.Columns() parses the worksheet XML, it scans ahead to map the columns belonging to the active row. During this look-ahead scan, it reads the row number directly from the raw XML attribute r using the helper attrValToInt(). In affected versions of Excelize, this look-ahead sequence did not validate if the parsed row index value exceeded the TotalRows limit.
When an XML workbook contains a second row with an out-of-bounds index, such as 231999999999940, the look-ahead parser assigns this value directly to the internal state variable rows.curRow. In the subsequent iteration, Rows.Next() attempts to advance to the next index by checking the status of rows.seekRow against rows.curRow to determine if a fast-forward seek is required.
Because rows.curRow contains the oversized, unvalidated value, the conditional check rows.curRow >= rows.seekRow evaluates to true. The iterator continuously increments the internal tracking pointer rows.seekRow in a sequential loop, attempting to reach the massive integer value stored in rows.curRow. This sequence runs indefinitely, consuming 100% of the executing CPU thread.
The vulnerability resides in rows.go within the Columns() and Next() method implementations. The code below illustrates the look-ahead logic in Rows.Columns() before the fix:
// Vulnerable logic in rows.go
if rowIterator.inElement == "row" {
rowNum := 0
if rowNum, rowIterator.err = attrValToInt("r", xmlElement.Attr); rowNum != 0 {
rows.curRow = rowNum
} else if rows.token == nil {
rows.curRow++
}
}The code above parses the r attribute and assigns it directly to rows.curRow without checking if the parsed index exceeds TotalRows. Commit 01a9ff32fb3c1f873cf01205e1b8a3285b0e1d23 resolves this by adding an explicit upper bound comparison:
// Patched logic in rows.go
if rowIterator.inElement == "row" {
rowNum := 0
if rowNum, rowIterator.err = attrValToInt("r", xmlElement.Attr); rowNum > TotalRows {
rows.err, rows.token = ErrMaxRows, nil
return rowIterator.cells, rows.err
} else if rowNum != 0 {
rows.curRow = rowNum
} else if rows.token == nil {
rows.curRow++
}
}Additionally, the patch implements a critical short-circuit check at the entry point of the Rows.Next() function. This ensures that any error state flagged during look-ahead parsing immediately terminates the iteration:
// Patched logic in Next()
func (rows *Rows) Next() bool {
if rows.err != nil {
return false
}
rows.seekRow++
// ...
}By forcing an immediate exit when rows.err is populated with ErrMaxRows, the parsing engine halts execution immediately. This prevents the execution flow from falling into the sequential lookup loop, entirely neutralizing the CPU exhaustion vector.
An attacker can exploit this vulnerability by submitting a highly structured XLSX archive that targets the look-ahead mechanism. The exploit does not require authentication and can be completed via standard file-upload vectors.
To construct the payload, an attacker creates an Excel file and unpacks its structures to locate xl/worksheets/sheet1.xml. Inside this document, the attacker inserts a valid first row followed immediately by an out-of-bounds row index:
<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
<sheetData>
<row r="1">
<c><v>First</v></c>
</row>
<row r="5000000000">
<c><v>Trigger</v></c>
</row>
</sheetData>
</worksheet>Once the archive is re-compressed and uploaded to a target application, the processing service executes the Excelize reading routine. The loop sequentially processes the first row cleanly. During look-ahead processing of the first row, Rows.Columns() reads the next element in the token stream and encounters the row with index 5000000000.
Because the index is not validated, the parser assigns 5000000000 to rows.curRow. When the application calls Rows.Next() to fetch the subsequent row, the validation check enters a loop where rows.seekRow increments from 2 towards 5000000000. This causes the executing Go routine to hang indefinitely, pinning the host CPU core.
The impact of CVE-2026-107212 is a sustained Denial of Service on the affected host. Because Excelize is often implemented in synchronous upload handling paths, a single malicious file upload will lock a processing thread and drive host CPU core usage to 100% capacity.
In multi-tenant cloud environments or microservice architectures, multiple automated uploads can quickly exhaust all available CPU resources across instances. This degrades the performance of surrounding services, causes request timeouts, and leads to system-wide instability.
This vulnerability has a CVSS v3.1 base score of 7.5. Since the exploit is contained entirely within the structure of the input file, it requires no privileges, can be executed over the network without user interaction, and has low attack complexity. Although it does not compromise data confidentiality or integrity, its impact on service availability is high.
The primary remediation for this vulnerability is updating the Excelize dependency within the application module. Users should target versions containing the official patch merged in PR #2438, or explicitly pin their module configurations to the fixed commit hash:
go get github.com/xuri/excelize/v2@01a9ff32fb3c1f873cf01205e1b8a3285b0e1d23If updating the library is not immediately possible, applications should implement strict execution timeouts for document parsing tasks. Using Go contexts with strict deadlines guarantees that any parsing operations that exceed reasonable execution boundaries will be terminated forcefully:
ctx, cancel := context.WithTimeout(context.Background(), 10 * time.Second)
defer cancel()
// Implement context check within processing logicAdditional mitigation steps include enforcing payload size limitations at the API gateway layer to prevent extremely large files from reaching backend parsers. Isolating parsing engines in resource-constrained containers (e.g., configuring CPU limits in Kubernetes or Docker) ensures that resource starvation is isolated and does not compromise critical infrastructure.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
excelize qax-os | >= 2.1.0, <= 2.11.0 | Commit 01a9ff32fb3c1f873cf01205e1b8a3285b0e1d23 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-770 |
| Attack Vector | Network |
| CVSS v3.1 Score | 7.5 (High) |
| EPSS Score | 0.00339 (Percentile: 25.26%) |
| Impact | Denial of Service (CPU Exhaustion) |
| Exploit Status | PoC / Tested |
| CISA KEV Status | Not Listed |
The software allocates memory, CPU, or other resources without checking or restricting the quantity, allowing a remote attacker to exhaust host resources and trigger a Denial of Service.
NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.
CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.
CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.
CVE-2026-77309 (GHSA-jrjx-9jjw-747m) is a high-severity unauthenticated remote code execution vulnerability affecting NASA-AMMOS AIT-GUI versions 1.0.0 through 2.5.0. The flaw results from chaining an incomplete file cleanup error in the telemetry query endpoint (/tlm/query) with a directory traversal flaw in the script execution endpoint (/script/run). An attacker on an adjacent network can stage arbitrary Python statements into a static file on disk and execute that file under the privileges of the AIT-GUI web server process.
A vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) exists in memtomem-stm versions 0.1.0 through 0.1.33. The software acts as a Model Context Protocol (MCP) short-term memory proxy gateway for AI agent architectures. When surfacing retrieved memories and scratchpad items into downstream Large Language Model (LLM) context envelopes, the SurfacingFormatter component fails to properly sanitize untrusted memory attributes. An attacker with the ability to plant untrusted content into the agent's long-term or working memory store can inject arbitrary structural delimiters, close the <surfaced-memories> XML boundary prematurely, visually obscure instructions using Unicode bidirectional overrides, and execute stored prompt injection attacks against downstream LLM agents.
CVE-2026-77331 (GHSA-72jh-722p-rqr3) is a concurrency and session-state synchronization vulnerability in memtomem-stm, a short-term memory proxy gateway for AI agents. In versions 0.1.2 prior to 0.1.34, concurrent Model Context Protocol (MCP) Remote Procedure Call (RPC) failures or mid-flight task cancellations can initiate duplicate reconnect loops and permit dirty or cancelled transport sessions to be reused. This deficiency results in session-state integrity loss and local service degradation.