Submeter #1053954: warpdesign pcx-js 1.1.1 Denial of Serviceinformação

Títulowarpdesign pcx-js 1.1.1 Denial of Service
Descriçãopcx-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().
Fonte⚠️ https://gist.github.com/saidkarimovs/49f9411cd190abbd8a9f48e4445a5780
Utilizador
 saidkarimov_16 (UID 102400)
Submissão23/10/2026 13h13 (há 1 mês)
Moderação22/11/2026 17h33 (1 month later)
EstadoAceite
Entrada VulDB442156 [warpdesign pcx-js até 1.1.1 PCX Pixel Buffer Decoder js/pcx.js decode8bpp/decode4bpp Negação de Serviço]
Pontos20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!