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

Ichitaro Word Processor PersistDirectory Code Execution Vulnerability

Ichitaro's PowerPoint parser fails to check whether a reallocation of its persist-directory offset buffer succeeded, then writes attacker-controlled offsets through the resulting pointer. By chaining persist records and choosing the number of offsets, an attacker could corrupt memory and potentially execute code in the context of the application.

A member Follow

Originally disclosed on Cisco Talos

High 7.5 View original

Ichitaro Office contains a vulnerability that exists when trying to open a specially crafted PowerPoint file. Due to the application incorrectly handling the error case for a function’s result, the application will use this result in a pointer calculation for reading file data into.

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 realloc result is stored without a NULL check, so a failed allocation leaves a bad pointer that is then used in pointer arithmetic and a write.

Impact

Under the right conditions this could lead to code execution under the context of the application, though a near-NULL write normally needs a heap spray to be useful.

What the attacker needed

Victim opens a crafted PowerPoint file; memory pressure so realloc fails

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 opens PowerPoint files by reading a list of records that say where each part of the document lives. When that list grows, the program asks the operating system for more memory but never checks whether the request worked, then writes into the place it expected. A crafted file can make it write to a bad address, which can crash the program or, in the right conditions, 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 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.