Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
Agamnentzar ag-psd
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

ag-psd 是一个用于读写 Photoshop 文档(PSD)文件的 JavaScript 库。在版本 31.0.0 引入分配限制修复之前, 函数会在验证攻击者声明的 PSD 几何尺寸是否与实际可用数据相符或是否符合合理的分配限制之前,就根据这些声明预先分配图像和图层缓冲区。 的实现会依据 (宽度)、 (高度)、 (通道数)、 (位深)以及每层的矩形区域来分配堆外(off-heap)的 TypedArray。因此,一个声明了巨大几何尺寸但实际内容极小的 PSD 文件,可以在后续触发越界错误之前,强制系统分配数 G

CVSS 7.5 · High

Possible ATT&CK Techniques 1 AI

T1499.003 · Application Exhaustion Flood
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-62297

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
ag-psd has uncontrolled memory allocation via declared PSD dimensions (DoS)
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
未经控制的内存分配
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
Agamnentzar ag-psd < 31.0.0 -

II. Public POCs for CVE-2026-62297

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-62297

请登录查看更多情报信息。

Other References for CVE-2026-62297 (3)

IV. Related Vulnerabilities