Live › vulnerability › CVE-2026-62297
ag-psd is a JavaScript library for reading and writing Photoshop files. A tiny malicious PSD declaring huge dimensions makes readPsd() allocate multi-gigabyte buffers before failing, so an attacker can crash or exhaust memory on a service that reads untrusted PSDs.
Summary written from the sources below. Check the originals before acting.
First seen by InfraStack 2026-10-30 21:25 UTC. All times on this page are UTC.
Applications that pass untrusted or user-uploaded PSD files to readPsd() are exposed, because the allocation happens before validation. Systems that only read PSD files they generate or fully control can skip it. The sources say the layer-rectangle allocation path may not be fully covered even in 31.0.0.
No product ranges from the sources yet.
npm ls ag-psd and compare against the fixed release.readPsd() that accept files uploaded or supplied by users.31.0.0 adds a composite-image allocation limit; the sources say complete coverage of the layer-rectangle allocation path is not established, so verify before relying on it.Each row is the first time that source carried this signal. The analyst’s rows are its own findings.
ag-psd is a JavaScript library for reading and writing Photoshop Document files. Before the allocation-limit remediation attempt in version 31.0.0, readPsd() commits image and layer buffers from attacker-declared PSD geometry before validating the declarations against the actual available data or sane allocation limits. The psdReader.js implementation sizes off-heap typed arrays using width, height, channels, depth and per-layer rectangles, so a tiny PSD declaring enormous geometry can force multi-gigabyte memory allocation before a later bounds error. The reported 52-byte input on Node 24 produced approximately 3.17 GB peak RSS before a RangeError; under memory pressure the process can be terminated before the error can be caught, and concurrent inputs can exhaust memory. Services reading untrusted PSDs are exposed to denial of service. This differs from genuinely large PSD files whose memory demand is proportional to real input content. Version 31.0.0 adds a composite-image allocation limit, but complete coverage of the separately described layer-rectangle allocation path is not established and requires curator residual/scope review.
This page as .md · .json · in your agent: get_signal("CVE-2026-62297")
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.