Skip to content
Memory corruption Advisory Advanced CVE-2020-6063

Accusoft ImageGear PCX uncompress_scan_line buffer size computation code execution vulnerability

A specially crafted PCX file can cause an out-of-bounds write in the uncompress_scan_line function of Accusoft ImageGear, leading to remote code execution. An attacker needs to provide a malformed file to the victim to trigger the vulnerability.

Emmanuel Tacheau Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

An exploitable out-of-bounds write vulnerability exists in the uncompressscanline function of the igcore19d.dll library of Accusoft ImageGear, version 19.5.0. A specially crafted PCX file can cause an out-of-bounds write, resulting in a remote code execution.

Emmanuel Tacheau, 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 a signed comparison in PCX_parse_header fails to swap Xmin and Xmax when Xmin is greater, causing a negative sizeX and an undersized buffer allocation.

Impact

A specially crafted PCX file can lead to an out-of-bounds write which can result in remote code execution.

What the attacker needed

Victim opens a malicious PCX file

How it was found

  1. Craft a PCX file with bits_per_pixel set to 2 and nplanes set to 2.
  2. Set Xmin greater than Xmax in the PCX header.
  3. Load the file via IG_load_file to trigger the out-of-bounds write.

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.

This report describes a bug in a library that reads image files. When the library opens a malicious PCX image, it writes data past the end of a memory buffer, which can crash the program or let an attacker run their own code. The attacker just needs to trick someone into opening the file.

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 Emmanuel Tacheau

View all

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