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

AntennaHouse DMC HTMLFilter PPT ParseEnvironment Code Execution Vulnerability

A heap buffer overflow exists in the ParseEnvironment function of AntennaHouse DMC HTMLFilter when converting PPT files, because a buffer is allocated using one record's size but filled using a different record's size. An attacker could supply a crafted PPT file to corrupt the heap and potentially execute arbitrary code.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

High 8.3 View original

AntennaHouse DMC HTMLFilter shipped with MarkLogic 8.0-6 fb1a22fa08c986ec3614284f4e912b0a /opt/MarkLogic/Converters/cvtofc/libdhfrdoc.so 15b0acc464fba28335239f722a62037f /opt/MarkLogic/Converters/cvtofc/libdmccomm.so 1eabb31236c675f9856a7d001b339334 /opt/MarkLogic/Converters/cvtofc/libdhfrxls.so…

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 buffer is allocated using textMasterStyleAtom.size but the read uses fontEntityAtom.size, so the copy can exceed the allocation.

Impact

Heap corruption could lead to remote code execution, though the CVSS vector notes high attack complexity and required user interaction.

What the attacker needed

Victim opens or converts a crafted PPT file; attacker can supply the PPT file

How it was found

  1. Open the PPT file with the converter, which reaches ParseEnvironment during document parsing.
  2. The parser reads a text master style record and a font entity record.
  3. A buffer is allocated using the text master style size.
  4. The font entity record's larger size is used to read data into that buffer, overflowing it.

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 software converts PowerPoint files into web pages. When it reads a part of the file describing fonts, it reserves a small amount of memory but then copies a much larger amount of data into it, spilling past the end. That spill can overwrite other data the program relies on, and a crafted file could let an attacker take control of the program.

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.