Skip to content
Memory corruption Advisory Advanced CVE-2020-13580

SoftMaker Office PlanMaker Document Record 0x8010 out-of-bounds write vulnerability

The PlanMaker document parser trusts a length field in record type 0x8010 and uses it to write a 16-bit null past a stack buffer, even though a clamped copy of the length was checked. An attacker could craft a document that corrupts memory and potentially achieve code execution when the victim opens it.

A member Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable heap-based buffer overflow vulnerability exists in the PlanMaker document parsing functionality of SoftMaker Office 2021’s PlanMaker application. A specially crafted document can cause the document parser to explicitly trust a length from a particular record type and use it to write a 16-bit null…

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 parser validates a clamped copy of the length but then re-reads the raw, unconstrained length from the record and uses it as an index for a null write.

Impact

An attacker could corrupt memory and potentially execute code in the context of the application, though the write is only a 16-bit null and the stack canary must be avoided.

What the attacker needed

Victim opens a crafted document; attacker can deliver a .pmd file

The fix

The handler should use the already-clamped length value instead of re-reading the raw length from the record.

How it was found

  1. Open a crafted PlanMaker document in the application.
  2. The parser reads the PMW stream and dispatches record type 0x8010 to its handler.
  3. The handler reads a 16-bit length from the record and clamps it for a bounds check.
  4. The handler re-reads the raw length and writes a 16-bit null at an offset based on it, past the stack 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 spreadsheet program reads a number from a file that says how long a piece of text is. It checks that number once, but then reads it again and uses the unchecked value to place a zero in memory, which can land outside the intended area. By choosing the number carefully, an attacker can overwrite important data and possibly 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 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.