exifreader is vulnerable to Denial of Service (DoS)
75
High Risk
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.
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).
exifreader is vulnerable to Denial of Service (DoS) in versions 4.22.0 - 4.41.0.
Upgrade the exifreader library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant