CVE-2026-85715: CWE-789: Memory Allocation with Excessive Size Value in mattiasw ExifReader
ExifReader versions prior to 4.41.1 contain a vulnerability in parsing HEIC or AVIF ISO-BMFF files where attacker-controlled values can cause excessive memory allocation. This occurs because the parser trusts iloc itemCount and extentCount values without bounding the allocations when certain size fields are zero, leading to potential denial of service by exhausting system memory. The issue is fixed in version 4.41.1.
AI Analysis
Technical Summary
ExifReader, a JavaScript library for parsing Exif information, has a vulnerability (CVE-2026-85715) in versions before 4.41.1. The vulnerability arises in the getItems() function within src/image-header-iso-bmff-iloc.js when parsing HEIC or AVIF ISO-BMFF files. The parser trusts iloc box fields itemCount and extentCount to allocate extent objects in nested loops. When offsetSize, lengthSize, baseOffsetSize, and indexSize are zero, the parser does not advance the buffer offset but still allocates objects proportional to itemCount multiplied by extentCount without limiting this allocation. This can cause hundreds of megabytes of heap growth or exhaust system memory, terminating Node.js processes and causing denial of service in applications parsing untrusted images. The zero field widths are valid per ISO-BMFF, so the parser must impose bounds rather than rely on offset advancement. The vulnerability is addressed in ExifReader version 4.41.1.
Potential Impact
An attacker can craft malicious HEIC or AVIF images that trigger excessive memory allocation in vulnerable ExifReader versions, leading to high memory consumption and potential termination of Node.js processes. This results in denial of service for web, desktop, or mobile applications that parse untrusted images using affected versions of ExifReader. There is no impact on confidentiality or integrity, only availability.
Mitigation Recommendations
Upgrade ExifReader to version 4.41.1 or later, where this vulnerability is fixed. The fix bounds the memory allocation during parsing to prevent excessive heap growth. No other mitigation is indicated or required.
CVE-2026-85715: CWE-789: Memory Allocation with Excessive Size Value in mattiasw ExifReader
Description
ExifReader versions prior to 4.41.1 contain a vulnerability in parsing HEIC or AVIF ISO-BMFF files where attacker-controlled values can cause excessive memory allocation. This occurs because the parser trusts iloc itemCount and extentCount values without bounding the allocations when certain size fields are zero, leading to potential denial of service by exhausting system memory. The issue is fixed in version 4.41.1.
CVSS v3.1
Score 7.5high
Affected software
mattiasw
ExifReader
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
ExifReader, a JavaScript library for parsing Exif information, has a vulnerability (CVE-2026-85715) in versions before 4.41.1. The vulnerability arises in the getItems() function within src/image-header-iso-bmff-iloc.js when parsing HEIC or AVIF ISO-BMFF files. The parser trusts iloc box fields itemCount and extentCount to allocate extent objects in nested loops. When offsetSize, lengthSize, baseOffsetSize, and indexSize are zero, the parser does not advance the buffer offset but still allocates objects proportional to itemCount multiplied by extentCount without limiting this allocation. This can cause hundreds of megabytes of heap growth or exhaust system memory, terminating Node.js processes and causing denial of service in applications parsing untrusted images. The zero field widths are valid per ISO-BMFF, so the parser must impose bounds rather than rely on offset advancement. The vulnerability is addressed in ExifReader version 4.41.1.
Potential Impact
An attacker can craft malicious HEIC or AVIF images that trigger excessive memory allocation in vulnerable ExifReader versions, leading to high memory consumption and potential termination of Node.js processes. This results in denial of service for web, desktop, or mobile applications that parse untrusted images using affected versions of ExifReader. There is no impact on confidentiality or integrity, only availability.
Mitigation Recommendations
Upgrade ExifReader to version 4.41.1 or later, where this vulnerability is fixed. The fix bounds the memory allocation during parsing to prevent excessive heap growth. No other mitigation is indicated or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-09-04T14:45:10.647Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aac0b8155bf5e2cf5942eec
Added to database: 09/17/2026, 15:47:13 UTC
Last enriched: 09/17/2026, 16:01:40 UTC
Last updated: 09/17/2026, 16:52:03 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.