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

AntennaHouse DMC HTMLFilter FillRowFormat Code Execution Vulnerability

A heap buffer overflow exists in the FillRowFormat function of AntennaHouse DMC HTMLFilter when processing a specially crafted XLS file. An attacker could exploit this to cause arbitrary code execution.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

High 8.3 View original

An exploitable heap corruption vulnerability exists in the FillRowFormat functionality of AntennaHouse DMC HTMLFilter that is shipped with MarkLogic 8.0-6. A specially crafted xls file can cause a heap corruption resulting in arbitrary 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 column index value read from the XLS file is not checked against an upper limit before being used to calculate the size of a memory write, leading to a heap buffer overflow.

What the attacker needed

Victim opens a malicious XLS file; the file is processed by the vulnerable converter

The fix

The column index should be validated to ensure it does not exceed the maximum allowed value (0x00FF) or the colMac field.

How it was found

  1. Create a malformed XLS file containing a record with an out-of-range column index.
  2. Run the XLS to HTML converter with the malformed file as input.
  3. Observe the heap buffer overflow in FillRowFormat via Valgrind or a debugger.

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 memory corruption bug in a file converter. When the converter reads a malicious spreadsheet file, it writes more data into a memory buffer than the buffer can hold, 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.

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.