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

Computerinsel Photoline ANI Parsing Code Execution Vulnerability

The ANI image parser in Computerinsel Photoline 20.54 trusts a length value taken from the file header and passes it to a memory copy routine. An attacker who supplies a crafted ANI image can cause an out-of-bounds write and potentially execute code.

Tyler Bohan Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A memory corruption vulnerability exists in the ANI-parsing functionality of Computerinsel Photoline 20.54. A specially crafted ANI image processed via the application can lead to a stack overflow, overwriting arbitrary data.

Tyler Bohan, 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 parser uses the header-supplied length directly in a memory copy without validating it against the actual buffer size.

Impact

A crafted ANI image could cause an out-of-bounds write and potentially lead to code execution, though the report only demonstrates a crash detected by the stack canary.

What the attacker needed

Victim opens a crafted ANI image; Photoline 20.54 on OS X

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.

An ANI file is a Windows animated cursor format, and it stores a size value in its header. This program reads that size and copies that many bytes without checking it against the real amount of data, so a huge number makes it write past the end of a buffer. That kind of memory corruption can let an attacker run their own code on the machine.

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 Tyler Bohan

View all

84 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.