Description
probe-image-size before 7.5.0 contains an unbounded memory allocation vulnerability in lib/parse_stream/avif.js that allows remote attackers to exhaust memory via attacker-declared ftyp or meta box sizes. Attackers can supply an AVIF stream or URL to probe(url) or probe(stream) declaring a huge box length, forcing the parser to buffer all received bytes and causing denial of service.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
nodeca probe-image-size
Default version status: unaffected
0 to < 7.5.0affected
pkg:npm/probe-image-sizeReferences
- https://github.com/nodeca/probe-image-size/security/advisories/GHSA-7pqp-3q23-mwr8 ↗
- https://github.com/nodeca/probe-image-size/commit/2d37c88f56c2fa3948f383beb16c67c95ef09eee ↗
- https://github.com/nodeca/probe-image-size/blob/64565c3c8b4b69655426cdfce250e6a93455c9da/lib/parse_stream/avif.js#L151 ↗
- https://www.npmjs.com/package/probe-image-size/v/7.5.0 ↗
- https://www.vulncheck.com/advisories/probe-image-size-before-7.5.0-memory-exhaustion-via-avif-box-size ↗