Skip to main content

ExifReader CVE-2026-8813

| EUVDEUVD-2026-30838 HIGH
Improper Validation of Specified Quantity in Input (CWE-1284)
2026-05-19 snyk GHSA-h64w-w9pr-82m4
7.7
CVSS 4.0 · Vendor: snyk
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify endpoint invoking ExifReader
  2. Delivery
    Craft image with malicious ICC mluc tag
  3. Exploit
    Upload image via HTTP request
  4. Install
    Parser loops on zero-size record
  5. C2
    Array grows until heap exhausted
  6. Execute
    Worker process OOM-killed
  7. Impact
    Service availability degraded

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Input size validation
Exploitation Conditions

The target application must (1) accept attacker-supplied image bytes - typically via an HTTP upload, fetched URL, or image-processing queue - and (2) invoke a vulnerable ExifReader version (<4.39.0) on those bytes with ICC profile parsing enabled (the default; ExifReader's USE_ICC flag is on by default). No authentication, user interaction, or special platform is required (CVSS PR:N/UI:N/AC:L). Limiting factors that reduce realistic risk: deployments that disable ICC parsing, that strip ICC profiles upstream, that enforce strict per-request memory caps, or that run ExifReader only on internally trusted images will not be practically exploitable. Impact is bounded to availability (VC:N/VI:N/VA:H) - no code execution or data disclosure.

Impact

Real-world risk is moderate and primarily an availability concern. The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N gives attackers a network-reachable, unauthenticated, low-complexity path, but the impact is restricted to VA:H with VC:N/VI:N - no confidentiality or integrity loss, and no scope change. EPSS data was not supplied; the issue is not on CISA KEV, so there is no confirmed active exploitation. However, publicly available exploit code exists (a gist is referenced and E:P is set in the CVSS vector), and the trigger is a single crafted image, which is trivially deliverable to any service that calls ExifReader on user uploads. Risk is highest for SaaS image-handling services, avatar uploaders, CMS plugins, and serverless functions that run ExifReader synchronously without memory/time limits, where a single request can OOM-kill a worker; risk is lower for offline or sandboxed batch processing with strict resource caps.

Exploit ScenarioDerived

An attacker uploads a single JPEG, PNG, or WebP whose embedded ICC profile contains a crafted mluc tag with a large record count and a record size of zero to a public endpoint that calls ExifReader (for example, a profile-picture uploader or an image-CDN ingest pipeline). The Node.js worker enters the mluc parsing loop, appends entries indefinitely, and the V8 heap grows until the process is OOM-killed, taking the request and any concurrent work with it. Because publicly available exploit code exists in the referenced gist, the scenario is reproducible without reverse engineering.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – May 19, 2026

Denial-of-service in ExifReader (npm package mattiasw/ExifReader) before 4.39.0 allows remote attackers to exhaust memory by submitting a crafted image whose ICC profile contains a malformed mluc tag. A specially crafted record count combined with a zero record size causes the parser to loop on the same record while continuously appending entries to an array, driving memory growth until the host process crashes. CVSS 4.0 base score is 7.7 with proof-of-concept exploit maturity (E:P), and publicly available exploit code exists via the referenced gist; no active in-the-wild exploitation is indicated.

Earlier versions of this analysis (1)
v1 May 19, 2026 - 06:45 CVSS 7.5

Denial of service in the ExifReader JavaScript library (versions before 4.39.0) allows remote unauthenticated attackers to exhaust process memory by supplying a crafted image with a malformed ICC mluc tag. EPSS 'P' (POC) maturity indicates publicly available exploit code exists, though it is not listed in CISA KEV. Any web or server-side application that ingests user-supplied images and parses them with ExifReader is exposed.

RemediationAI

Vendor-released patch: upgrade ExifReader to 4.39.0 or later (npm install exifreader@^4.39.0, then rebuild and redeploy any service that bundles it); the upstream fix is commit c9d88b67e127b2dcc7b46e328df468257fb2dc30 and is summarized in the project changelog as improved robustness against malformed ICC mluc tags. Audit transitive dependencies with npm ls exifreader or an SCA tool to catch indirect inclusions, and consult the Snyk advisory at https://security.snyk.io/vuln/SNYK-JS-EXIFREADER-16689335 for additional mitigation guidance. If immediate upgrade is not feasible, compensating controls include disabling ICC profile parsing in ExifReader options (omit USE_ICC where the API allows it, accepting that ICC metadata will no longer be extracted), enforcing a strict maximum image size and per-request memory or CPU cap on the worker that performs parsing (which limits blast radius but does not prevent the crash), running metadata extraction inside an isolated short-lived worker or container with --max-old-space-size so that OOM kills do not bring down the main application, and stripping ICC profiles upstream with a hardened tool such as ImageMagick or libvips before the bytes ever reach ExifReader.

Affected VersionsENISA

exifreader 0 <4.39.0

Affected Packages

npm exifreader fix: 4.39.0

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 widely used JavaScript/Node.js library for extracting EXIF, IPTC, XMP, ICC and other metadata from images, commonly deployed inside web upload pipelines, image processors, and serverless functions. The bug lives in the ICC profile parser, specifically the handling of the multi-localized Unicode string (mluc) tag defined by the ICC.1:2010 specification, which encodes a 32-bit record count and a 32-bit record size followed by per-locale entries. CWE-1284 (Improper Validation of Specified Quantity in Input) applies: the parser trusts the attacker-supplied record count and does not validate that the record size is non-zero, so the read pointer never advances and the same record is appended repeatedly. The upstream fix is commit c9d88b67e127b2dcc7b46e328df468257fb2dc30 (CHANGELOG: 'Improved robustness when parsing ICC profiles with malformed mluc tags') shipped in 4.39.0. Affected CPE is cpe:2.3:a:n/a:exifreader:*:*:*:*:*:*:*:*.

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

Vendor (snyk) PRIMARY 7.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P

Primary rating from Vendor (snyk) · only source for this CVE.

CVSS VectorVendor: snyk

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
May 19, 2026 - 07:28 vuln.today
v2 - CVSS changed
CVSS changed
May 19, 2026 - 07:22 NVD
7.5 (HIGH) 7.7 (HIGH)
Patch available
May 19, 2026 - 07:16 EUVD

DescriptionCVE.org

This affects versions of the package exifreader before 4.39.0. A crafted image containing an ICC mluc tag can set an attacker-controlled record count together with a zero record size. During parsing, ExifReader repeatedly processes the same record and appends entries to an array without sufficient bounds validation, causing excessive memory growth. In applications that parse attacker-supplied images, this may lead to denial of service through memory exhaustion.

Executive ViewAI

Why It Matters

ExifReader, a widely-used npm package for image metadata processing, contains a denial-of-service vulnerability that allows remote attackers to crash applications by submitting specially crafted images. Publicly available exploit code exists, making this vulnerability accessible to threat actors. Any service accepting image uploads and using unpatched versions of ExifReader (before 4.39.0) faces material availability risk.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 83% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy