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

Accusoft ImageGear ICO icoread code execution vulnerability

A specially crafted ICO file causes an out-of-bounds write in the Accusoft ImageGear ICO parser, leading to memory corruption and potentially remote code execution. An attacker can provide a malformed file to a victim to trigger the vulnerability.

A member Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

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

a member, 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 memcpy size is calculated from file-controlled values without proper bounds checking, and the destination buffer is allocated using a different calculation, leading to a mismatch and overflow.

Impact

An attacker could cause memory corruption and potentially achieve remote code execution.

What the attacker needed

Victim opens a malformed ICO file

The fix

The vendor patched the vulnerability.

How it was found

  1. Craft a malformed ICO file with specific values at offsets 0x4, 0xE, and 0x8 to control the memcpy size and buffer allocation.
  2. Load the file using the IG_load_file function.
  3. The parser calculates a large memcpy size and a smaller buffer allocation, causing an 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.

An out-of-bounds write happens when a program writes data past the end of a memory buffer, corrupting other memory. Here, a malformed image file makes the library copy too much data into a buffer, which can crash the program or let an attacker 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 A member

View all

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