CVE-2026-62297 Details
Description
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.
A denial-of-service vulnerability has been identified in the ag-psd library, specifically in versions through 30.2.0. The issue arises in the readPsd() function, which processes Photoshop Document (PSD) files. Before version 31.0.0, this function would allocate memory for image and layer buffers based on declared PSD dimensions without proper validation. As a result, a small, crafted PSD file could trigger multi-gigabyte memory allocations, leading to process termination on most hosts. This vulnerability is particularly concerning for services that handle untrusted PSD files, as it can be exploited to exhaust system memory and cause a process to crash.
Users can upgrade to ag-psd version 31.0.0 or later, where this vulnerability has been addressed. For those who cannot upgrade, it's recommended to implement checks on PSD files before processing them with ag-psd, to ensure they do not exceed safe size limits.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 30, 2026CISA-ADP
Assessed Nov 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Agamnentzar/ag-psd/security/advisories/GHSA-qfx6-q44v-9qqw | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/Agamnentzar/ag-psd/commit/2d7da68400990bae8ba248a065eb45021fa8000a | [email protected] | Source CodeVendor |
| https://github.com/Agamnentzar/ag-psd/security/advisories/GHSA-qfx6-q44v-9qqw | [email protected] | AdvisoryExploitRemedyVendor |
| https://github.com/Agamnentzar/ag-psd/tree/31.0.0 | [email protected] | Source CodeVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-789 | Memory Allocation with Excessive Size Value | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Agamnentzar ag-psd | <= 30.2.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 2, 2026 | CVE Modified | CISA-ADP |
| Oct 30, 2026 | New CVE Received | [email protected] |
Volerion