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

Computerinsel Photoline PCX Color Map Code Execution Vulnerability

The PCX image parser in Computerinsel Photoline 20.53 miscalculates the size of compressed colour-map data, so a crafted PCX file causes an out-of-bounds write with attacker-controlled data. An attacker could deliver such an image to a victim and potentially gain code execution.

Tyler Bohan Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A memory corruption vulnerability exists in the PCX-parsing functionality of Computerinsel Photoline 20.53. A specially crafted PCX image processed via the application can lead to an out-of-bounds write, 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 trusts a size value derived from the file header when decompressing the colour map, so the loop writes more entries than the destination buffer can hold.

Impact

A crafted PCX image could overwrite memory and may allow code execution when the victim opens it in the application.

What the attacker needed

Victim opens a crafted PCX image; Photoline 20.53 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 image file has a small header that tells the program how the picture data is stored. Here the program trusts a size value from the file and copies colour data into a fixed buffer without checking that it fits, so a malicious file can spill data past the end of that buffer. Spilling past a buffer can let an attacker overwrite other memory and, in the worst case, 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 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.