FreeXL BIFF Dimension Marker Code Execution Vulnerability
A heap-based buffer overflow in FreeXL's read_legacy_biff function allows an attacker to cause memory corruption by supplying a specially crafted XLS file, potentially leading to remote code execution.
Originally disclosed on Cisco Talos
An exploitable heap-based buffer overflow vulnerability exists in the readlegacybiff function of FreeXL 1.0.3. 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 record size read from the file is not checked against the fixed-size buffer, allowing a heap overflow.
Impact
An attacker could cause memory corruption and potentially execute arbitrary code.
What the attacker needed
Victim opens a malicious XLS file
How it was found
- Create an XLS file in the old BIFF format.
- Include a DIMENSION record with a size larger than the buffer.
- Open the file with FreeXL to trigger the overflow.
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.
FreeXL is a library that reads old Excel files. A bug in how it handles a particular part of those files lets an attacker write more data than the program reserved space for, which can crash the program or let the 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.