Skip to content
Memory corruption Advisory Advanced CVE-2018-3984

Atlantis Word Processor Word document paragraph property (0xD608) sprmTDefTable uninitialized length code execution vulnerability

The Word document parser leaves a table column count uninitialised when a paragraph property record is absent, so a crafted document makes the program use an attacker-influenced value as a loop length and write past a heap buffer. Opening such a document could let an attacker run code as the user.

A member Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable uninitialized length vulnerability exists within the Word document-parser of the Atlantis Word Processor. A specially crafted document can cause Atlantis to skip initializing a value representing the number of columns of a table.

a member, 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 parser skips initialising the table column count when the sprmTDefTable property is missing, leaving a sentinel value that is later used as a loop bound for heap writes.

Impact

A crafted document could cause a heap buffer overflow that may lead to code execution under the context of the application, though the victim must open the file.

What the attacker needed

Victim opens a crafted document; no account needed

How it was found

  1. Craft a Word binary document whose paragraph property data omits the table definition record.
  2. Open the document in Atlantis Word Processor so it fingerprints the file and parses the WordDocument, table and Data streams.
  3. The parser reads the CLX array and walks the piece descriptors, reaching the paragraph property parser.
  4. Because the table property is absent, the column count stays at its sentinel value and is used as a loop length, overflowing the heap buffer.

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.

A word processor reads a document file and trusts a number stored in it to say how many table columns there are. If that number is never set properly, the program can be told to write far more data than the space it reserved, corrupting memory. An attacker who sends the victim a malicious document could then take over 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 A member

View all

110 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.