Threat Advisory

Crafted PSD Parsing Exhausts Memory in ag-psd

Threat: Vulnerability
Targeted Region: Global
Targeted Sector: Technology & IT
Criticality: High
[subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

CVE-2026-62297 with a CVSS score of 7.5 is a denial-of-service vulnerability in the ag-psd npm package, where versions < 31.0.0 are affected. The flaw occurs in the readPsd function, which sizes and commits image and layer buffers from declared PSD header geometry, including width, height, channels, depth, and per-layer rectangles, before validating those values against the actual input data. An attacker can exploit this remotely by supplying a very small crafted PSD file that declares enormous dimensions, causing the parser to allocate multiple gigabytes of memory from a tiny payload. Because the allocation happens before validation, the process can be terminated by an out-of-memory condition before a catchable error is raised, and repeated or concurrent requests can exhaust host memory. This creates a remote availability risk for any application or service that processes untrusted PSD files with the affected library, potentially causing service disruption, degraded performance, loss of availability, and increased operational costs from recovery or capacity management.

RECOMMENDATION:

We recommend you to update ag-psd to version 31.0.0.[/subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

CVE-2026-62297 with a CVSS score of 7.5 is a denial-of-service vulnerability in the ag-psd npm package, where versions < 31.0.0 are affected. The flaw occurs in the readPsd function, which sizes and commits image and layer buffers from declared PSD header geometry, including width, height, channels, depth, and per-layer rectangles, before validating those values against the actual input data. An attacker can exploit this remotely by supplying a very small crafted PSD file that declares enormous dimensions, causing the parser to allocate multiple gigabytes of memory from a tiny payload. Because the allocation happens before validation, the process can be terminated by an out-of-memory condition before a catchable error is raised, and repeated or concurrent requests can exhaust host memory. This creates a remote availability risk for any application or service that processes untrusted PSD files with the affected library, potentially causing service disruption, degraded performance, loss of availability, and increased operational costs from recovery or capacity management.

RECOMMENDATION:

We recommend you to update ag-psd to version 31.0.0.[emaillocker id="1283"]

REFERENCES:

The following reports contain further technical details:

[/emaillocker]
crossmenu