Computerinsel Photoline PSD Blending Channels Code Execution Vulnerability
A specially crafted PSD file with an oversized blending channel value causes an out-of-bounds write in Photoline's PSD parser. An attacker could deliver such a document to trigger memory corruption and potentially gain code execution.
Originally disclosed on Cisco Talos
A memory corruption vulnerability exists in the PSD parsing functionality of Computerinsel Photoline 20.53. A specially crafted PSD document 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 blending channel count taken from the PSD file is used to control a copy loop without validation, and a signed decrement counter is converted to unsigned, allowing the loop to run far past the buffer.
Impact
Opening a malicious PSD document could crash the application and may allow an attacker to execute arbitrary code in the context of the user.
What the attacker needed
Victim opens a crafted PSD file; Photoline 20.53 on OS X
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.
A PSD file is a Photoshop image document. This program reads a number from the file that tells it how many blending channels to copy, but it never checks that the number is sensible. A huge number makes the program write past the end of its memory buffer, which can crash it 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.