Accusoft ImageGear TIFF YCbCr image parser out-of-bounds write vulnerability
A heap-based buffer overflow exists in the TIFF YCbCr image parser of Accusoft ImageGear 19.10 due to a missing size check between ImageWidth and YCbCrSubsampleHoriz. An attacker can provide a malicious TIFF file to trigger the overflow, potentially leading to remote code execution.
Originally disclosed on Cisco Talos
An out-of-bounds write vulnerability exists in the TIFF YCbCr image parser functionality of Accusoft ImageGear 19.10. A specially-crafted file can lead to remote code execution.
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 program does not enforce any relationship between ImageWidth, used to compute the size of a destination buffer, and YCbCrSubsampleHoriz, which determines how many bytes are written into that buffer.
Impact
An attacker could achieve remote code execution by providing a malicious file.
What the attacker needed
Victim opens a malicious TIFF file
The fix
The vulnerability should be fixed by enforcing the TIFF specification, including checking YCbCrSubSampling values and their relationship with ImageWidth and ImageLength.
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 specially crafted TIFF image, it writes more data into a memory buffer than the buffer can hold, which can crash the program or allow an attacker to 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.