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.
Originally disclosed on Cisco Talos
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.
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
- Convert a crafted OpenDocument file to JPEG using the document filter tool.
- Observe the crash from a virtual call on an already freed object.
- Inspect the heap to confirm the object was freed earlier.
- 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.