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-111126 Overview
CVE-2026-111126 is an out-of-bounds read vulnerability in catdoc through version 0.95, affecting the xls2csv utility. The flaw resides in the MULRK record handler within process_item() in src/xlsparse.c. Attackers craft a malicious .xls workbook or BIFF stream with a large endcol value, causing the parser to read past the static rec buffer. The result is disclosure of adjacent process memory as CSV output cells or a process crash. The weakness is classified as [CWE-125] Out-of-Bounds Read.
Critical Impact
Processing a crafted .xls file with xls2csv can leak adjacent process memory into CSV output or crash the utility, impacting automated document conversion pipelines.
Affected Products
- catdoc through version 0.95
- xls2csv utility bundled with catdoc
- Any downstream tooling or document-conversion pipeline invoking xls2csv on untrusted .xls input
Discovery Timeline
- 2026-10-15 - CVE-2026-111126 published to the National Vulnerability Database (NVD)
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-111126
Vulnerability Analysis
The vulnerability lives in the MULRK (Multiple RK) BIFF record handler inside process_item() in src/xlsparse.c. BIFF MULRK records encode a run of numeric cells across a row using a start column (colFirst) and an end column (colLast / endcol). The handler iterates between these column indices and writes results into the static rec buffer. The implementation does not validate that endcol stays within the bounds of rec before indexing into it. A workbook that advertises an endcol far larger than the physical buffer size causes the loop to read bytes past the allocated region.
Root Cause
The root cause is missing bounds validation on an attacker-controlled 16-bit column index parsed directly from the BIFF stream. The process_item() routine trusts the endcol field and uses it as an upper bound for buffer indexing without comparing it against the capacity of rec. This is a classic [CWE-125] violation where parser inputs drive memory access without a sanity check.
Attack Vector
Exploitation requires a local user to invoke xls2csv on a crafted .xls workbook or feed a crafted BIFF stream on standard input. User interaction is required to launch the conversion. The attacker-controlled endcol causes the handler to copy out-of-bounds memory into CSV cells, exfiltrating process memory to the output file, or triggers a crash resulting in denial of service of the conversion workflow. No authentication is required because xls2csv is a command-line tool operating on local input.
Verified proof-of-concept code is not published alongside the advisory. Technical details are documented in the HackMD Security Analysis and the VulnCheck Security Advisory. The vulnerable code region is published in the GitHub Source Code Snippet.
Detection Methods for CVE-2026-111126
Indicators of Compromise
- Unexpected binary content, printable but non-tabular byte sequences, or NUL characters appearing in CSV output produced by xls2csv.
- Crashes or abnormal termination of xls2csv processes when converting third-party .xls files.
- .xls files whose BIFF MULRK records declare colLast (endcol) values far greater than the actual row width.
Detection Strategies
- Scan ingested .xls files for BIFF MULRK records with implausibly large endcol fields before invoking xls2csv.
- Run xls2csv under memory-safety instrumentation such as AddressSanitizer in test environments to catch out-of-bounds reads against suspect samples.
- Alert on xls2csv processes exiting with non-zero status or signals such as SIGSEGV in document-conversion pipelines.
Monitoring Recommendations
- Log the full command line, parent process, and input file path for every xls2csv invocation in conversion workers.
- Track process exit codes and resident-memory anomalies for catdoc and xls2csv to flag crash patterns tied to specific uploads.
- Correlate conversion failures with upstream file sources to identify attacker-staged input batches.
How to Mitigate CVE-2026-111126
Immediate Actions Required
- Inventory all systems where catdoc or xls2csv is installed, including conversion microservices, mail gateways, and forensic workstations.
- Restrict xls2csv to trusted input sources until a patched build is deployed.
- Execute xls2csv under an unprivileged service account inside a sandbox or container with no access to secrets or adjacent process memory.
Patch Information
No fixed release is listed in the advisory at the time of publication; catdoc is affected through version 0.95. Monitor the upstream GitHub Project Repository and the VulnCheck Security Advisory for a patched commit or tagged release. Downstream Linux distributions may publish backported fixes before an upstream release.
Workarounds
- Pre-filter .xls input and reject files whose MULRK records declare endcol values beyond the maximum valid Excel column index.
- Convert .xls files with an alternative, actively maintained parser such as libxls or ssconvert from Gnumeric while a patch is pending.
- Run xls2csv inside a seccomp or bubblewrap sandbox and discard output that exceeds expected row and column counts.
- Clear sensitive environment variables and secrets from the shell session that invokes xls2csv to limit the value of any leaked memory.
# Configuration example: run xls2csv in a restrictive sandbox
bwrap --ro-bind /usr /usr --ro-bind /lib /lib --ro-bind /lib64 /lib64 \
--tmpfs /tmp --unshare-all --die-with-parent \
--new-session --cap-drop ALL \
/usr/bin/xls2csv /tmp/untrusted.xls > /tmp/output.csv
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

