Enviar #1053954: warpdesign pcx-js 1.1.1 Denial of Serviceinformación

Títulowarpdesign pcx-js 1.1.1 Denial of Service
Descripciónpcx-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().
Fuente⚠️ https://gist.github.com/saidkarimovs/49f9411cd190abbd8a9f48e4445a5780
Usuario
 saidkarimov_16 (UID 102400)
Sumisión2026-10-23 13:13 (hace 1 mes)
Moderación2026-11-22 17:33 (1 month later)
EstadoAceptado
Entrada de VulDB442156 [warpdesign pcx-js hasta 1.1.1 PCX Pixel Buffer Decoder js/pcx.js decode8bpp/decode4bpp denegación de servicio]
Puntos20

Interested in the pricing of exploits?

See the underground prices here!