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

Accusoft ImageGear GIF LZW decoder heap overflow vulnerability

A heap overflow exists in the GIF LZW decoder of Accusoft ImageGear 19.8 because the copy loop lacks bounds checking on the destination buffer index. An attacker could provide a malicious GIF file to trigger the overflow, potentially leading to arbitrary code execution.

Emmanuel Tacheau Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

A heap overflow vulnerability exists in the way the GIF parser decodes LZW compressed streams in Accusoft ImageGear 19.8. A specially crafted malformed file can trigger a heap overflow, which can result in arbitrary code execution.

Emmanuel Tacheau and Marcin Towalski, 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

Impact

The heap overflow could allow an attacker to overwrite adjacent heap memory and potentially achieve arbitrary code execution.

What the attacker needed

Victim opens a malicious GIF file

The fix

The vendor patched the vulnerability, likely by adding bounds checks to the LZW decoding loop.

How it was found

  1. Open the supplied proof of concept GIF image in ImageGear.
  2. The LZW decoder processes the compressed stream and writes past the destination buffer.
  3. A crash occurs due to an access violation when writing to invalid memory.

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.

A heap overflow is a memory corruption bug where a program writes more data than a buffer can hold, overwriting nearby memory. Here, the GIF decoder copies decompressed data without checking if it fits, so a crafted GIF can cause the program to crash or run attacker-controlled 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 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.