Skip to content
Memory corruption Advisory Advanced CVE-2016-8383

AntennaHouse DMC HTMLFilter Doc_GetFontTable Code Execution Vulnerability

The doc-to-HTML converter allocates a font table buffer using a size value taken from the input file, and a crafted doc file can make that size zero, so subsequent writes go past the end of the allocation. An attacker could supply a malicious doc file to corrupt heap memory and potentially execute arbitrary code.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

High 8.3 View original

An exploitable heap corruption vulnerability exists in the DocGetFontTable functionality of AntennaHouse DMC HTMLFilter. A specially crafted doc 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 font table size read from the document is not validated, so a zero (or too small) value is passed to the allocator and the code writes past the resulting buffer.

Impact

A crafted doc file could corrupt heap memory and, as the report claims, ultimately lead to remote code execution.

What the attacker needed

Attacker supplies a crafted doc file; victim or service converts the doc file

How it was found

  1. Run the doc-to-HTML converter with a malformed doc file as input.
  2. Observe the out-of-bounds writes and reads reported by the memory checker inside the font table routine.

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 program turns Word documents into web pages. It reads a number from the document to decide how much memory to reserve for a font list, and a malicious document can make that number zero. The program then keeps writing font data anyway, past the end of the tiny reserved area, which damages nearby memory and can 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.