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

Accusoft ImageGear JPEG SOFx Code Execution Vulnerability

A malformed JPEG file can trigger an out-of-bounds write in the ImageGear library's JPEG SOFx parser, leading to memory corruption and potentially remote code execution. An attacker must provide the crafted file to a victim to exploit 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 igcore19d.dll JPEG SOFx parser of the Accusoft ImageGear 19.5.0 library. A specially crafted JPEG file can cause an out-of-bounds write, resulting in a remote code execution.

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

The buffer size is calculated using one field from the JPEG file, but a loop that writes to the buffer is controlled by a different field, allowing the write to exceed the allocated buffer.

Impact

This could result in remote code execution, allowing an attacker to run arbitrary code on the victim's system.

What the attacker needed

Victim opens a malformed JPEG file

How it was found

  1. Craft a malformed JPEG file with specific values in the SOFx segment.
  2. Load the file using the IG_load_file function.
  3. The parser enters a loop that writes beyond the allocated buffer, causing an access violation.

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.

The ImageGear library processes JPEG images. When it reads a specially crafted JPEG file, it writes data past the end of a memory buffer. This can crash the program or allow an attacker to run their own code on the victim's computer.

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

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