CVE-2026-62297
High 7.5No known exploitationFix availableag-psd has uncontrolled memory allocation via declared PSD dimensions (DoS)
Vendor advisory: GHSA-qfx6-q44v-9qqw
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 28% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-789
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Agamnentzar | ag-psd | < 31.0.0 | Not documented | CVE Program |
| npm | ag-psd | all versions before 31.0.0 | 31.0.0 | GitHub Advisory Database |
Timeline
Disclosure
CVE record published by GitHub_M
Source: CVE Program (opens in a new tab)
Patch
Fix documented by GitHub Advisory Database
Vendor guidance and references
- https://github.com/Agamnentzar/ag-psd/commit/2d7da68400990bae8ba248a065eb45021fa8000a (opens in a new tab)x_refsource_misc
- https://github.com/Agamnentzar/ag-psd/security/advisories/GHSA-qfx6-q44v-9qqw (opens in a new tab)x_refsource_confirm
- https://github.com/Agamnentzar/ag-psd/tree/31.0.0 (opens in a new tab)x_refsource_misc
- GitHub Advisory GHSA-qfx6-q44v-9qqw (opens in a new tab)github-advisory