Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-111127 Overview
CVE-2026-111127 is an out-of-bounds read vulnerability [CWE-125] in catdoc through version 0.95. The flaw resides in the copy_unicode_string() function in src/xlsparse.c. The parser trusts an attacker-controlled two-byte character count without validating it against the remaining buffer size.
An attacker crafts a malicious .xls file that declares 0xFFFF two-byte characters in a LABEL, STRING, or SST record. When xls2csv processes the file, the function reads past the allocated buffer. The result is disclosure of adjacent heap memory through xls2csv output or a process crash.
Critical Impact
Processing a crafted .xls file with xls2csv leaks adjacent memory contents into converter output or terminates the process, breaking automated document conversion pipelines.
Affected Products
- catdoc through version 0.95
- xls2csv utility bundled with catdoc
- Any application or pipeline invoking catdoc/xls2csv for .xls conversion
Discovery Timeline
- 2026-10-15 - CVE-2026-111127 published to NVD
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-111127
Vulnerability Analysis
The catdoc suite converts legacy Microsoft Office documents to plain text. The xls2csv binary parses the Binary Interchange File Format (BIFF) records inside .xls workbooks. The copy_unicode_string() helper decodes Unicode strings embedded in LABEL, STRING, and Shared String Table (SST) records.
The function reads a 16-bit character count directly from the file. It then iterates that many characters without confirming that the declared length fits within the record payload. Supplying 0xFFFF as the count forces the loop to walk 65,535 code units past the input buffer. The out-of-bounds bytes are either written to stdout as the converted CSV content or trigger a segmentation fault when the read crosses an unmapped page.
Root Cause
The root cause is missing bounds validation on an attacker-controlled length field. copy_unicode_string() in src/xlsparse.c (lines 421-520) consumes the character count from the record header but does not compare it against the remaining bytes in the parsed record. This matches the CWE-125 out-of-bounds read pattern. See the catdoc source code for the vulnerable region.
Attack Vector
Exploitation requires local processing of a crafted .xls file and user interaction to invoke xls2csv or a wrapper tool. Attackers deliver the malicious workbook via email attachments, file-sharing portals, or automated ingestion pipelines that normalize legacy spreadsheets. The malicious file declares 0xFFFF two-byte characters in a LABEL, STRING, or SST record. When processed, adjacent heap memory is leaked into the CSV output or the process crashes. Technical analysis is available in the HackMD write-up and the VulnCheck advisory.
// No verified public exploit code is available.
// See the HackMD analysis and VulnCheck advisory linked above
// for a step-by-step description of the crafted BIFF record layout.
Detection Methods for CVE-2026-111127
Indicators of Compromise
- .xls files containing LABEL, STRING, or SST BIFF records with a declared character count of 0xFFFF or any count larger than the enclosing record payload.
- xls2csv output rows that contain binary data, long runs of non-printable characters, or ASCII fragments that look like adjacent heap contents.
- Unexpected SIGSEGV crashes or non-zero exit codes from xls2csv or catdoc inside document conversion workers.
Detection Strategies
- Pre-scan incoming .xls files with a BIFF-aware parser and reject records where the string length exceeds remaining record bytes.
- Compare the byte length of CSV output to the input file size; disproportionate growth from a small .xls input is a strong signal of leaked memory.
- Alert on repeated crashes of document conversion processes correlated with specific uploaded files.
Monitoring Recommendations
- Capture stderr and exit codes from every catdoc/xls2csv invocation in centralized logs.
- Monitor file-conversion microservices for abnormal process termination rates and memory fault signals.
- Track provenance of .xls files feeding automated pipelines so suspect inputs can be re-examined after a crash.
How to Mitigate CVE-2026-111127
Immediate Actions Required
- Stop batch processing of untrusted .xls files with xls2csv or catdoc until a patched build is deployed.
- Isolate document-conversion workloads in sandboxed containers or short-lived VMs with no network egress and minimal filesystem access.
- Inventory all systems and pipelines that invoke catdoc or xls2csv, including backup indexers, mail gateways, and e-discovery tools.
Patch Information
No fixed release has been published at the time of writing. Monitor the catdoc GitHub repository and the VulnCheck advisory for an upstream fix. Downstream Linux distributions should be checked for backported patches to the catdoc package.
Workarounds
- Pre-filter .xls uploads by parsing the BIFF record stream and rejecting any file whose LABEL, STRING, or SST record declares a character count larger than the record payload.
- Convert legacy .xls files with an alternative parser such as libxls, ssconvert (Gnumeric), or LibreOffice --headless conversion in a sandbox.
- Enforce file-size and record-count limits on uploads to document ingestion services to reduce opportunities for crafted input delivery.
# Restrict xls2csv to a disposable sandbox and discard crash output
firejail --quiet --net=none --private --read-only=/ \
--rlimit-as=268435456 \
xls2csv "$INPUT_XLS" > "$OUTPUT_CSV" 2>/dev/null || \
{ echo "xls2csv failed on $INPUT_XLS - quarantining"; \
mv "$INPUT_XLS" /var/quarantine/; }
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

