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

FreeXL read_biff_next_record Code Execution Vulnerability

A heap-based buffer overflow in FreeXL's read_biff_next_record function occurs because the record size read from an XLS file is not checked against the fixed-size buffer. An attacker could send a malicious XLS file to cause memory corruption and potentially execute code.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable heap based buffer overflow vulnerability exists in the readbiffnextrecord 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 used to control a copy loop without verifying it is smaller than the fixed-size record buffer.

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.

FreeXL is a library that reads old Excel files. It copies data from the file into a fixed-size memory area without checking if the data is too big, so a crafted file can overflow that area and corrupt memory. This could let an attacker run their own code on the victim's computer.

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.