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

Hyland Perceptive Document Filters OpenDocument to JPEG conversion SkCanvas Code Execution vulnerability

A crafted OpenDocument file causes the document-to-JPEG conversion to free the same SkCanvas object twice. An attacker who can shape the heap between the two frees could turn this into arbitrary code execution.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable double free exists in the OpenDocument to JPEG conversion functionality of the Hyland Perspective Document Filters version 11.4.0.2647. A crafted OpenDocument document can lead to a SkCanvas object double free resulting in direct 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 SkCanvas object is destroyed once during page rendering and then destroyed again when the canvas wrapper is torn down, because ownership of the object is not tracked.

Impact

An attacker who properly manipulates the heap between the two frees could achieve arbitrary code execution.

What the attacker needed

Victim converts a crafted OpenDocument; attacker supplies the document file

How it was found

  1. Convert a crafted OpenDocument file to JPEG using the document filter tool.
  2. Observe the crash from a virtual call on an already freed object.
  3. Inspect the heap to confirm the object was freed earlier.
  4. Trace the object's allocation and both deallocation call stacks.

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.

When a program finishes with a piece of memory it hands it back to the system, and using or freeing it again afterwards is a bug. Here the converter releases the same drawing object twice, so an attacker who controls the file being converted may be able to make the program 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.