Computerinsel Photoline TIFF Bits Per Pixel Parsing Code Execution Vulnerability
A specially crafted compressed tiled TIFF image can cause an out-of-bounds write in Photoline's TIFF parsing code, because image-controlled values are used to compute a write address. An attacker could deliver such an image to trigger memory corruption and potentially gain code execution.
Originally disclosed on Cisco Talos
A memory corruption vulnerability exists in the TIFF parsing functionality of Computerinsel Photoline 20.53. A specially crafted TIFF image processed via the application can lead to an out-of-bounds write, overwriting arbitrary data.
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 parser uses image-supplied values (bits per sample, width and tile data) to compute a destination address without validating it, so the write in the parsing loop can land outside the intended buffer.
Impact
An attacker could cause an out-of-bounds write and potentially gain code execution, though the user must open the crafted image.
What the attacker needed
Victim opens a crafted TIFF image
How it was found
- Open a crafted compressed tiled TIFF image in Photoline.
- The parser reads image-controlled values from the TIFF tags.
- Those values select a parsing path and compute a write address.
- The parsing loop writes to that address, which can be out of bounds.
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.
An image file contains small pieces of data called tags that tell the program how to read the picture. In this program, some of those values were trusted too much and used to work out where to store data in memory, so a rigged image could make it write past the end of its buffer. That kind of mistake can crash the program or let 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.