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

Atlantis Word Processor Word Document Complex Piece Descriptor Table Fc.Compressed Code Execution Vulnerability

Atlantis Word Processor parses the CLX array in a Word document and writes a recalculated character position back into the array. If the CLX array size is not a multiple of the piece descriptor size, the last write goes out of bounds, corrupting heap memory and potentially leading to code execution.

A member Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable out-of-bounds write vulnerability exists in the Word Document parser of the Atlantis Word Processor. A specially crafted document can cause Atlantis to write a value outside the bounds of a heap allocation, resulting in a buffer overflow.

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

The application allocates a heap buffer using the CLX array size from the file but then iterates over piece descriptors without ensuring the size is a multiple of the descriptor size, causing an out-of-bounds write on the last iteration.

Impact

An attacker could cause a heap-based buffer overflow, potentially leading to code execution under the context of the user opening the document.

What the attacker needed

Victim opens a crafted document

How it was found

  1. Craft a Word document with a CLX array whose lcb size is not a multiple of the piece descriptor size.
  2. Open the document in Atlantis Word Processor.
  3. The application allocates a buffer of the given size and reads the CLX array into it.
  4. During parsing of the piece descriptor table, the last iteration writes a recalculated value past the end of the buffer.
  5. The corrupted heap memory is later freed, causing an access violation or potential code execution.

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 file format that contains a table describing where text is stored. When it processes a compressed entry, it recalculates a position and writes it back into a memory buffer. If the buffer size is not a multiple of the entry size, the last write goes past the end of the buffer, corrupting other memory. An attacker can craft a document that triggers this, and opening it could crash the program or allow code execution.

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.