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

AntennaHouse DMC HTMLFilter iBldDirInfo Code Execution Vulnerability

A heap-based buffer overflow exists in the iBldDirInfo function of AntennaHouse DMC HTMLFilter when parsing a specially crafted XLS file. An attacker could exploit this to cause heap corruption and potentially achieve 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 iBldDirInfo functionality of AntennaHouse DMC HTMLFilter used by 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

Likely the code increments the output index twice per input character during Unicode to SJIS conversion, allowing the written name to exceed the 64-byte limit and overflow the allocated directory entry buffer.

What the attacker needed

Victim opens a malicious XLS file; MarkLogic with AntennaHouse DMC HTMLFilter

How it was found

  1. Create a malformed XLS file with a directory entry name that triggers the overflow.
  2. Run the XLS to HTML converter with the malformed file as input.
  3. Observe the heap-based buffer overflow in iBldDirInfo under 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.

When a program reads a file, it must carefully check the size of data it copies into memory. Here, a name field in an Excel file can be longer than expected, and the program writes past the end of a memory buffer, corrupting other data. This can crash the program or, in the worst case, 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.