提出 #1053954: warpdesign pcx-js 1.1.1 Denial of Service情報

タイトルwarpdesign pcx-js 1.1.1 Denial of Service
説明pcx-js through 1.1.1 allocates an image pixel buffer of width*height*4 bytes using width and height values taken directly from the untrusted PCX file header (the xmin, ymin, xmax, ymax fields), in PCX.prototype.decode8bpp and PCX.prototype.decode4bpp in js/pcx.js. The declared dimensions are not validated against the actual input size or any upper bound before allocation. A crafted 128-byte PCX file that declares a 65536 x 65536 image forces an allocation of approximately 16 GiB (65536 * 65536 * 4). On a normal host this creates a 16 GiB buffer; under a memory limit the process throws an uncaught RangeError (Array buffer allocation failed) and crashes. The allocation is performed before any pixel data is read, so no valid image body is required. Any service that decodes attacker-supplied PCX files with pcx-js can be driven into memory exhaustion or a crash (denial of service) by a tiny file. Affected versions: all published versions up to and including 1.1.1. Vulnerability class: CWE-789 Memory Allocation with Excessive Size Value (denial of service). CVSS 3.1: 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H). Vendor contacted / coordinated disclosure: https://github.com/warpdesign/pcx-js/issues/8 Advisory and proof of concept: https://gist.github.com/saidkarimovs/49f9411cd190abbd8a9f48e4445a5780 Suggested fix: validate dimensions before allocating. Reject non-positive or implausibly large width, height, and width*height (a configurable megapixel cap), and/or cross-check the declared pixel count against available input bytes before calling new ArrayBuffer().
ソース⚠️ https://gist.github.com/saidkarimovs/49f9411cd190abbd8a9f48e4445a5780
ユーザー
 saidkarimov_16 (UID 102400)
送信2026年10月23日 13:13 (1 月 ago)
モデレーション2026年11月22日 17:33 (1 month later)
ステータス承諾済み
VulDBエントリ442156 [warpdesign pcx-js 迄 1.1.1 PCX Pixel Buffer Decoder js/pcx.js decode8bpp/decode4bpp サービス拒否]
ポイント20

Do you know our Splunk app?

Download it now for free!