# CVE-2026-62297: ag-psd has uncontrolled memory allocation via declared PSD dimensions (DoS)

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-30T20:57:06.379Z
- Modified: 2026-11-13T23:30:03.769Z
- Also known as: GHSA-qfx6-q44v-9qqw
- Weaknesses: CWE-789
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Agamnentzar ag-psd: < 31.0.0
- ag-psd (npm): before 31.0.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/Agamnentzar/ag-psd/security/advisories/GHSA-qfx6-q44v-9qqw> (exploit, web)
- <https://github.com/Agamnentzar/ag-psd/commit/2d7da68400990bae8ba248a065eb45021fa8000a> (web)
- <https://github.com/Agamnentzar/ag-psd/tree/31.0.0> (web)
- <https://github.com/Agamnentzar/ag-psd> (package)
- <https://github.com/Agamnentzar/ag-psd/blob/2d7da68400990bae8ba248a065eb45021fa8000a/CHANGELOG.md> (web)
- <https://nvd.nist.gov/vuln/detail/cve-2026-62297> (advisory)

## Sources

- CVE List: [CVE-2026-62297](https://www.cve.org/CVERecord?id=CVE-2026-62297), CVE Terms of Use, modified 2026-11-02
- GitHub Advisory Database: [GHSA-qfx6-q44v-9qqw](https://github.com/advisories/GHSA-qfx6-q44v-9qqw), CC-BY-4.0, modified 2026-11-13
- NVD: [CVE-2026-62297](https://nvd.nist.gov/vuln/detail/CVE-2026-62297), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2026-62297 · Whole record: https://cve.day/CVE-2026-62297.json · Rebuilt by cve.day 2026-11-25T22:59:48.026Z
