Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft HEIC/AVIF with malicious iloc box
-
DeliverySubmit image to app parsing metadata
-
ExploitgetItems() enters itemCount×extentCount loop
-
ExecutionAllocate extent objects without budget
-
PersistHeap exhaustion / OOM crash
-
ImpactDenial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
|
| Exploitation Conditions | Exploitable whenever an application passes attacker-controlled HEIC or AVIF (ISO-BMFF) images to ExifReader versions prior to 4.41.1 for metadata parsing - no authentication, user interaction, or non-default configuration is required beyond the act of parsing untrusted images. The specific trigger is an iloc box with inflated itemCount and extentCount and offsetSize/lengthSize/baseOffsetSize/indexSize all set to zero (valid ISO-BMFF 'absent field' encodings), which causes the nested allocation loop to run without the buffer offset advancing. Limiting factor: the target must actually accept and parse untrusted image files with this library, and impact is bounded to process crash / memory exhaustion (availability), not code execution or data disclosure. |
| Impact | This is a genuine, easily-triggered denial-of-service issue, but not a top-tier emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, base 7.5) is availability-only and I concur with it - there is no confidentiality or integrity impact, so the 'HIGH' rating derives entirely from A:H. The attack is network-reachable, low-complexity, unauthenticated, and needs no user interaction: any application that feeds untrusted HEIC/AVIF images to ExifReader can be crashed. No EPSS score, no CISA KEV entry, and no public exploit code were provided in the intelligence, so exploitation status is 'no public exploit identified at time of analysis' - although the root cause is trivially reproducible from the advisory description (a tiny iloc box with large itemCount/extentCount and zero field widths). CWE-789 (memory allocation with excessive size value) is an accurate mapping. Net: real priority for services that ingest user-supplied images at scale, but the impact ceiling is process crash / memory exhaustion, not code execution or data loss. Note the input Tags mislabel this as 'Information Disclosure' - that is inconsistent with the C:N vector and the vendor's own 'denial-of-service' advisory language and should be disregarded. |
| Exploit ScenarioDerived | An attacker uploads or links a crafted HEIC/AVIF file to a web, desktop, or mobile service that extracts metadata with ExifReader. The malicious iloc box declares huge itemCount and extentCount with zero-width offset/length/baseOffset/index fields, so the parser allocates up to itemCount×extentCount extent objects without the buffer ever advancing, driving hundreds of megabytes of heap growth until the Node.js process is OOM-killed. No exploit code is publicly identified, but the condition is trivially reproducible from the advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Improper memory allocation control in ExifReader before 4.41.1 allows remote attackers to exhaust heap memory and terminate the host Node.js process by supplying a crafted HEIC or AVIF (ISO-BMFF) image for metadata parsing. The flaw is unauthenticated and requires no user interaction beyond the target application passing attacker-controlled image data to the library - a small malicious iloc box can allocate hundreds of megabytes of objects, producing a denial of service (CWE-789, CVSS 7.5, availability-only impact). No public exploit code has been identified at time of analysis, and the issue is fixed in version 4.41.1.
RemediationAI
Upgrade to ExifReader 4.41.1 or later - the vendor-released patch that adds bounding of iloc extent allocation work; the release is at https://github.com/mattiasw/ExifReader/releases/tag/v4.41.1, the fix commit is https://github.com/mattiasw/ExifReader/commit/17b901cd192d2c90d7f9f347bd3073b28b482699, and the advisory is https://github.com/mattiasw/ExifReader/security/advisories/GHSA-pj96-35fp-cfcc. No vendor-released patch exists for versions before 4.41.1, so if upgrading is not immediately possible, apply compensating controls: reject or quarantine HEIC/AVIF inputs whose 'iloc' box declares unusually large itemCount/extentCount values or that set offsetSize, lengthSize, baseOffsetSize, and indexSize to zero (a strict ISO-BMFF validator or pre-parser gate), accepting the trade-off that unusual-but-legitimate files may be blocked; run metadata extraction in an isolated child process, worker thread, or container with a hard heap/memory cap (for example Node.js --max-old-space-size) so exhaustion kills only the worker rather than the parent service, at the cost of added complexity and a restart-on-crash path; and enforce an input file-size and parsing-concurrency limit at the upload boundary to reduce how many hostile parses can run simultaneously. None of these substitutes for the 4.41.1 upgrade, since the underlying parser still trusts the declared counts.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ExifReader is a JavaScript library that extracts EXIF/metadata from images, including HEIC and AVIF files, which are structured as ISO Base Media File Format (ISO-BMFF) containers. The vulnerable code path is getItems() in src/image-header-iso-bmff-iloc.js, which reads the 'iloc' (item location) box and trusts its itemCount and extentCount fields, allocating an extent object on every nested-loop iteration without any allocation budget or sanity cap. The root cause class is CWE-789 (Memory Allocation with Excessive Size Value): when offsetSize, lengthSize, baseOffsetSize, and indexSize are all zero - perfectly valid ISO-BMFF encodings meaning the fields are absent - the parser consumes no input bytes and the buffer offset never advances, yet allocation continues for up to itemCount × extentCount iterations. Because progress is normally implicit in the offset advancing, the fix in 4.41.1 must bound the amount of work rather than rely on offset advancement. The affected package is identified by CPE cpe:2.3:a:mattiasw:exifreader:*:*:*:*:*:*:*:* (all versions prior to 4.41.1). Impact is confined to availability; the CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H confirms no confidentiality or integrity loss, so the 'Information Disclosure' tag should not be read as a data-exposure component of this CVE.
Know when Exifreader gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Unauthenticated, low-complexity parsing of a network-delivered image causes process crash; availability-only impact with no confidentiality or integrity effect, matching the vendor vector.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-789 (Memory Allocation with Excessive Size Value), with the advisory also tagging CWE-835.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
ExifReader, a widely embedded Node.js library used by image upload and media-processing pipelines, can be driven into heap exhaustion by a single crafted HEIC or AVIF file, terminating the host Node.js process and disrupting any service that relies on it. No vendor patch existed at the tracking status reviewed, although the advisory text references a fix in 4.41.1, leaving an availability risk that scales with however many applications or third-party dependencies embed the library. Leadership should care because the failure mode is service outage rather than data loss - customers experience dropped uploads or degraded availability, and remediation depends on inventorying a transitive dependency that may not appear in top-level SBOMs.
Apply vendor patch. Where the upgrade to 4.41.1 cannot be completed immediately, cap upload and decoded metadata sizes, block HEIC/AVIF inputs from untrusted sources, isolate parsing in memory-limited worker processes with automatic restart, and set Node.js heap limits.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
More in Exifreader
View allDenial-of-service in ExifReader (npm package mattiasw/ExifReader) before 4.39.0 allows remote attackers to exhaust memor
Decompression bomb (data amplification) in ExifReader npm package before 4.39.0 allows remote unauthenticated attackers
EUVD-2026-81897
GHSA-pj96-35fp-cfcc
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB