Oct 8, 2026·6 min read·28 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.
CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.
The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.
CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.
CVE-2026-128077 (GHSA-r99w-jh2x-3mg9) is an authorization bypass and interpretation conflict vulnerability affecting Nuxt and its underlying @nuxt/nitro-server package in versions 4.6.0 through 4.6.3. When an incoming HTTP request path begins with a double forward slash (e.g., //x/admin), the WHATWG URL parser within the Nuxt server-side page renderer interprets the initial segment as a network host/authority and resolves the remaining path (/admin) against the application's page router. Because Nitro server middleware, route-scoped serverHandlers, and Nitro routeRules evaluate the unparsed request path (//x/admin), path-based access controls, redirects, and security header policies configured for /admin fail to match and are bypassed.
Prior to version 2.10.2, the sqlite3-ruby gem explicitly cast 64-bit Ruby string lengths (long) to 32-bit signed integers (int) when invoking the underlying SQLite C API. On 64-bit platforms, providing a string of 4 GiB (2^32 bytes) or larger causes integer truncation, instructing SQLite to process only a prefix of the string. This flaw affects SQL query preparation, bound parameter values, and return values from custom Ruby-defined SQL functions and aggregates, allowing trailing SQL clauses such as WHERE restrictions to be silently dropped under specific conditions.
CVE-2026-128068 (GHSA-cpgf-5mjf-73p7) is a Regular Expression Denial of Service (ReDoS) vulnerability in the rails-html-sanitizer Ruby gem affecting versions 1.0.3 through 1.7.1. The flaw resides in the Rails::HTML::PermitScrubber#scrub_attribute method, which uses the multiline regular expression /^\s*[^#\s].*/m to enforce local-only URI fragment references on SVG elements. On Ruby runtimes prior to version 3.2 (CRuby <= 3.1 and JRuby), evaluating an attribute value composed of repeated newline and whitespace characters without a hash character triggers quadratic backtracking O(n^2). Applications are only vulnerable if their sanitization allowlist is explicitly configured to permit SVG reference elements such as <use> alongside href or xlink:href attributes.