CVE-2026-85715 ExifReader: DoS via Crafted HEIC/AVIF iloc Box - Memory Exhaustion
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
Description
ExifReader is a JavaScript Exif information parser. Prior to 4.41.1, ExifReader parses attacker-controlled HEIC or AVIF ISO-BMFF files in getItems() within src/image-header-iso-bmff-iloc.js and trusts iloc itemCount and extentCount values while allocating an extent object for every nested-loop iteration. When offsetSize, lengthSize, baseOffsetSize, and indexSize are zero, the extent fields consume no input bytes and the buffer offset does not advance, but the parser can still allocate up to itemCount multiplied by extentCount objects without an allocation budget. A small malicious iloc box can therefore cause hundreds of megabytes of heap growth or exhaust system memory, terminating a Node.js process and denying service to web, desktop, or mobile applications that parse untrusted images. The zero field widths are valid ISO-BMFF values indicating absent fields, so the vulnerable parser must bound work rather than relying on offset advancement. The issue is fixed in version 4.41.1.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm exifreader(npm) | < 4.41.1; <= 4.41.0 | 4.41.1 | Fixed |
| mattiasw ExifReader | = < 4.41.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| mattiasw ExifReader | = < 4.41.1 | No fix listed |
| npm exifreader(npm) | <= 4.41.0 | No fix listed |
| npm exifreader(npm) | < 4.41.1 | 4.41.1 |
References
- https://github.com/mattiasw/ExifReader/security/advisories/GHSA-pj96-35fp-cfcc exploit vendor-advisory
- https://github.com/mattiasw/ExifReader/commit/17b901cd192d2c90d7f9f347bd3073b28b482699 patch
- https://github.com/mattiasw/ExifReader/releases/tag/v4.41.1
- github.com
- github.com product
- ENISA EUVD EUVD-2026-81897 third-party-advisory