Skip to content
Memory corruption Advisory Advanced CVE-2019-5089

Investintech Able2Extract professional JPEG decoding code execution vulnerability

A specially crafted JPEG file can cause an integer overflow in the calculation of a memory allocation size, leading to an out-of-bounds write. An attacker could exploit this to execute arbitrary code on the victim's machine.

Piotr Bania Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable memory corruption vulnerability exists in Investintech Able2Extract Professional. A specially crafted JPEG file can cause an out-of-bounds memory write, allowing an attacker to execute arbitrary code on the victim machine.

Piotr Bania, 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 program multiplies three 32-bit integers (number of components, height, width) to compute a memory allocation size without checking for integer overflow, resulting in a too-small buffer that is later overflowed.

Impact

An attacker could execute arbitrary code on the victim's machine by providing a specially crafted JPEG file.

What the attacker needed

Victim opens a crafted JPEG file

The fix

The vulnerability was fixed by the vendor in version 14.0.7 (patched on 2019-11-01).

How it was found

  1. Craft a JPEG file with dimensions and component count such that their product overflows a 32-bit integer.
  2. Open the crafted JPEG file in Able2Extract Professional.
  3. The program allocates a buffer smaller than needed due to the overflow.
  4. While processing the image, the program writes beyond the allocated buffer, causing memory corruption.

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.

When a program opens a JPEG image, it calculates how much memory to reserve based on the image's width, height, and number of colour components. If those numbers are very large, the multiplication can overflow and produce a small number, so the program reserves too little memory. Later, when it writes the image data, it writes past the end of that small buffer, corrupting memory and potentially letting 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 Piotr Bania

View all

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