Intel

AIKIDO-2026-870492

exifreader is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)GHSA-pj96-35fp-cfcc Published Yesterday

75

High Risk

This Affects:

JSexifreader
4.22.0 - 4.41.0
Fixed in 4.41.1
Are you affected? Scan for Free

TL;DR

ExifReader parses the ISO-BMFF iloc box of HEIC and AVIF files in the getItems() function. When a crafted iloc box sets the extent size fields (offsetSize, lengthSize, baseOffsetSize, indexSize) to zero, the nested extent-parsing loop pushes a new object on every iteration without advancing the buffer offset or capping the count. A small attacker-supplied image can drive allocation of billions of objects, exhausting heap memory and crashing the process with an out-of-memory error. The fix bounds the extent count against the remaining bytes and enforces a hard cap on total extent allocation.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you parse HEIC or AVIF images with ExifReader (ISO-BMFF iloc handling).

Background info

exifreader is vulnerable to Denial of Service (DoS) in versions 4.22.0 - 4.41.0.

How to fix this

Upgrade the exifreader library to the patch version.