Skip to content
Memory corruption Advisory Advanced CVE-2017-2924

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.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

High 8.8 View original

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.

Marcin 'Icewall' Noga, on Cisco Talos

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

  1. Create an XLS file in the old BIFF format.
  2. Include a DIMENSION record with a size larger than the buffer.
  3. 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.

More by Marcin 'Icewall' Noga

View all

146 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.