Accusoft ImageGear tiff_planar_adobe out-of-bounds write vulnerability
A missing bounds check in the tiff_planar_adobe function of Accusoft ImageGear 20.1 allows a specially crafted TIFF file to cause an out-of-bounds write, leading to memory corruption. An attacker can provide a malicious file to trigger this vulnerability.
Originally disclosed on Cisco Talos
An out-of-bounds write vulnerability exists in the tiffplanaradobe functionality of Accusoft ImageGear 20.1. A specially crafted malformed file can lead to memory corruption.
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 loop bound max_loop is derived from size_raster_buffer, which is calculated from the ImageWidth tag without proper validation, allowing an out-of-bounds write.
Impact
This could lead to memory corruption, potentially allowing an attacker to execute arbitrary code or cause a denial of service.
What the attacker needed
Victim opens a malicious TIFF file; ImageGear library used to process the file
The fix
The vendor released a patch on 2023-09-20; the fix likely adds proper bounds checking in the tiff_planar_adobe function.
How it was found
- Craft a TIFF file with specific tags including Planar and Compression.
- Set the ImageWidth tag to a value that causes size_raster_buffer to be large.
- Load the malformed TIFF file using the vulnerable ImageGear library.
- The tiff_planar_adobe function writes out-of-bounds due to the unchecked loop.
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.
This report describes a memory corruption bug in an image processing library. When the library opens a malicious TIFF image, it writes data past the end of a buffer because it does not check the size properly. This can crash the program or potentially allow an attacker to run 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.