जमा करें #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)
सबमिशन23/10/2026 01:13 PM (1 महीना पहले)
संयम22/11/2026 05:33 PM (1 month later)
स्थितिस्वीकृत
VulDB प्रविष्टि442156 [warpdesign pcx-js तक 1.1.1 PCX Pixel Buffer Decoder js/pcx.js decode8bpp/decode4bpp सेवा अस्वीकार]
अंक20

Do you need the next level of professionalism?

Upgrade your account now!