Skip to main content

OpenHTJ2K EUVDEUVD-2026-44581

| CVE-2026-51808 CRITICAL
Classic Buffer Overflow (CWE-120)
2026-07-14 cve@mitre.org GHSA-rqpx-m8w5-7hj9
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Craft J2K with out-of-range SOT Isot
  2. Delivery
    Deliver to JPIP server or decoder
  3. Exploit
    Unchecked tile_index in decoder.cpp
  4. Execution
    Heap OOB read/write in add_tile_part()
  5. Persist
    Leak heap pointers via JPIP data-bins
  6. Impact
    Memory corruption / claimed code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer copy size validation
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target must process attacker-controlled JPEG 2000 (J2K/JP2) content with OpenHTJ2K v0.18.4 or earlier - either by calling any decoder entry point (invoke, invoke_line_based, invoke_line_based_stream, invoke_line_based_predecoded) or by running a JPIP server that loads the crafted codestream at startup via PacketLocator::build. The crafted codestream must contain an SOT marker with an Isot tile index greater than or equal to numTiles (numTiles.x * numTiles.y). The JPIP server path requires no authentication and no user interaction (matching PR:N/UI:N), and is the vector that best supports the AV:N rating; the library/decoder path additionally requires the host application to feed the malicious file to OpenHTJ2K, which is the practical limiting factor. Exploitation is limited to versions <= 0.18.4 and to environments that decode untrusted J2K data - patched 0.18.5 installs reject the malformed index at parse time.

Impact

The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H, base 9.8) implies trivial remote unauthenticated compromise, which holds for the JPIP server path where the codestream is loaded at startup/without user interaction. However, for the more common use as a decoder library, exploitation requires a host application to pass an attacker-supplied file to OpenHTJ2K, which in practice involves user or application-driven file handling - a nuance the AV:N/UI:N vector obscures. EPSS and KEV data are not provided; absence from CISA KEV plus no public exploit means this is not confirmed as actively exploited. The vendor's own analysis downgrades the confirmed impact from the CVE's claimed arbitrary code execution to a heap information leak with heap read/write corruption, so the C:H rating is well-supported but I:H/A:H (full code execution) is asserted by the description and not independently demonstrated in the provided evidence. Net: a genuinely serious memory-corruption bug worth prompt patching for anyone decoding untrusted J2K or running JPIP servers, but real-world urgency is tempered by the niche footprint and lack of active-exploitation signals.

Exploit ScenarioDerived

An attacker crafts a malformed JPEG 2000 codestream containing an SOT marker whose Isot tile index exceeds the actual tile count, then delivers it to a target running a JPIP server (loaded at startup, no user interaction) or to any application that decodes the file with OpenHTJ2K. Because AC is low, the malformed index passes unchecked into add_tile_part(), producing a heap out-of-bounds read/write; against a JPIP server the attacker can retrieve leaked heap pointers through later tile-header data-bin responses. Vendor-referenced PoC files (poc_01/poc_02 .j2k) demonstrate the server-surviving heap info leak, though they are not publicly published.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 15, 2026

Heap out-of-bounds read/write in OpenHTJ2K (High-Throughput JPEG 2000 reference codec) v0.18.4 and earlier lets an attacker corrupt heap memory by supplying a crafted J2K/JP2 codestream, with a confirmed heap information-leak primitive and vendor-claimed arbitrary code execution. The flaw is reached through every decoder entry point (invoke, invoke_line_based, invoke_line_based_stream, invoke_line_based_predecoded) and, notably, through a JPIP server's startup codestream load, making it network-reachable without user interaction. There is no public exploit identified at time of analysis, though the vendor changelog references non-public PoC files, and the issue is not listed in CISA KEV.

RemediationAI

Vendor-released patch: v0.18.5 - upgrade to OpenHTJ2K v0.18.5 or later (release https://github.com/osamu620/OpenHTJ2K/releases/tag/v0.18.5, fix in PR https://github.com/osamu620/OpenHTJ2K/pull/320), which adds a bounds check rejecting SOT tile indices where Isot >= numTiles and throws before any write through the offending pointer. If you cannot upgrade immediately, do not decode untrusted or externally sourced JPEG 2000 (J2K/JP2) content, and for JPIP deployments restrict or disable network exposure of the JPIP server and avoid loading untrusted startup codestreams; note these controls reduce functionality (blocking legitimate remote J2K workflows). Rebuilding/testing under AddressSanitizer is recommended to confirm the fix, since the vendor verified the previously reported heap-buffer-overflow at coding_units.cpp:3336 no longer triggers for the published PoCs.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenHTJ2K is an open-source reference implementation of the High-Throughput JPEG 2000 (HTJ2K, ITU-T T.814 / JPEG 2000 Part 15) image codec. The root cause is an unchecked SOT (Start-of-Tile) marker field: the Isot tile index parsed from the codestream is used to dispatch tile-parts via j2k_tile::add_tile_part() without validating it against the number of tiles (numTiles.x * numTiles.y, i.e. tileSet.size()). Although MITRE classifies this as CWE-120 (classic buffer overflow), the mechanism is more precisely improper validation of an array index (CWE-129) leading to heap out-of-bounds read/write; the vendor confirms heap pointers written by add_tile_part() into memory adjacent to the tileSet allocation can be reflected back to a client through later JPIP tile-header data-bin responses. AddressSanitizer originally flagged the heap-buffer-overflow at coding_units.cpp:3336, fixed at all four SOT-dispatch sites in source/core/interface/decoder.cpp.

Know when the next one hits your stack

  • 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 (mitre) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

JPIP server path is network-reachable with no auth or user interaction (AV:N/PR:N/UI:N/AC:L); confirmed heap info leak gives C:H and OOB heap write supports I:H/A:H, matching the published base score.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Jul 15, 2026 - 14:22 NVD
9.8 (CRITICAL)
CVE Published
Jul 14, 2026 - 23:17 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 14, 2026 - 23:17 cve.org
CRITICAL 9.8

DescriptionCVE.org

Buffer Overflow vulnerability in OpenHTJ2K v.0.18.4 and before allows an attacker to execute arbitrary code via the openhtj2k_decoder_impl::invoke, invoke_line_based, invoke_line_based_stream, and invoke_line_based_predecoded function in source/core/interface/decoder.cpp

Executive ViewAI

Why It Matters

OpenHTJ2K v0.18.4 and earlier contains a critical heap corruption vulnerability (CVE-2026-51808, CVSS 9.8) that is remotely exploitable through every decoder entry point including JPIP server startup, with no patch currently available. Successful exploitation enables attackers to corrupt system memory, potentially leading to data breach or code execution. Organizations processing JPEG 2000 content in media platforms, document systems, or specialized imaging applications face immediate risk to confidentiality and system availability.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: disabling OpenHTJ2K processing for untrusted JPEG 2000 content; implementing network segmentation and firewall rules to restrict access to JPEG 2000 processing services; deploying Web Application Firewall rules blocking J2K/JP2 file uploads where applicable; implementing detection signatures for heap exploitation attack patterns; maintaining enhanced audit logging for all JPEG 2000 decoding activities; and preparing expedited patch deployment procedures for when vendor remediation becomes available. No public exploit identified at time of analysis; however, the confirmed heap information-leak primitive and vendor-claimed arbitrary code execution, combined with network accessibility and absent patch, necessitate immediate containment measures.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Low
niche open-source HTJ2K reference codec, limited production footprint
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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