libxls xls_addCell MulBlank Code Execution Vulnerability
An out-of-bounds write in libxls's xls_addCell function when parsing a MULBLANK record allows a crafted XLS file to cause heap corruption and potentially remote code execution.
Originally disclosed on Cisco Talos
An exploitable Out-of-bounds Write vulnerability exists in the xlsaddCell function of libxls 1.4. A specially crafted xls file can cause a memory corruption resulting in remote code execution.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The code does not check that the row and column indices from the file are within the bounds of the allocated cell array before writing to it.
Impact
A crafted XLS file could cause heap corruption and potentially remote code execution.
What the attacker needed
Victim opens a malicious XLS file
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This report describes a bug in a library that reads old Excel files. When the library processes a specially made file, it writes data past the end of a memory buffer, which can crash the program or let an attacker run their own code.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.