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.
Originally disclosed on Cisco Talos
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.
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
- Craft a JPEG file with dimensions and component count such that their product overflows a 32-bit integer.
- Open the crafted JPEG file in Able2Extract Professional.
- The program allocates a buffer smaller than needed due to the overflow.
- 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.