Description
catdoc through 0.95 contains an out-of-bounds read vulnerability in copy_unicode_string() in src/xlsparse.c that allows attackers to read past buffers via an unchecked string character count. Attackers can supply a crafted .xls file declaring 0xFFFF two-byte characters in LABEL, STRING, or SST records to disclose adjacent memory through xls2csv output or crash the process.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
catdoc catdoc
Default version status: unaffected
0 to ≤ 0.95affected
pkg:github/vbwagner/catdocReferences
- https://hackmd.io/@haind-pwn/catdoc-xls-mulrk-endcol-and-string-count-oob-read ↗
- https://github.com/vbwagner/catdoc/blob/38a2807d22ce1a08bc39b94e9072a9f8f52cd86f/src/xlsparse.c#L421-L520 ↗
- https://github.com/vbwagner/catdoc ↗
- https://www.vulncheck.com/advisories/catdoc-through-0.95-out-of-bounds-read-via-xls2csv-copy-unicode-string ↗