Technical impact
The vulnerability arises from a mismatch in memory limit handling during PSD layer decoding. When processing untrusted portrait document files, the decoding routine does not honor the configured totalMemoryLimit and instead passes an undefined value, allowing an attacker to specify oversized layer dimensions. This leads to the creation of image data structures that exceed the intended limit, exhausting available process memory and causing the application to crash. Additionally, unbounded decompression of ZIP‑encoded channel data can also trigger denial of service by unlocking unlimited memory usage during inflateSync operations.
Affected Systems
The affected component is the ag-psd JavaScript library, versions prior to 31.0.1. The library is maintained by Agamnentzar and is used in any JavaScript application that reads or writes Photoshop Document files. Applications that enable layer decoding and parse PSD input are at risk when using these older versions.
Risk and Exploitability
The CVSS score of 7.5 indicates a high risk of denial of service. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Attackers can deliver malicious PSD files to any component that uses the library with layer decoding enabled, bypassing the intended memory limit. Exploitation requires only that the library runs as part of the application; no special privileges are needed. The primary impact is process instability and service interruption, which can cascade to broader availability issues for the affected application.
Github GHSA