Description
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
Published: 2026-07-14
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A buffer overflow exists in the OpenHTJ2K image decoder library (versions 0.18.4 and earlier) in several decoder entry points. The overflow occurs when the decoder processes certain JPEG 2000 data streams, allowing an attacker to supply crafted input that overwrites stack data and potentially redirects execution. This flaw is a classic buffer overflow and can lead to arbitrary code execution on the host where the decoder runs.

Affected Systems

The affected product is the OpenHTJ2K library, v0.18.4 and earlier. Any application that embeds this library and processes untrusted JPEG 2000 files could be exposed. No specific provided, but any software using OpenHTJ2K in this version range is at risk.

Risk and Exploitability

The CVSS score of 9.8 places this vulnerability in the critical range, but the EPSS score of less than 1 % indicates a very low probability of exploitation at present. The vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is through a crafted JPEG 2000 stream that an application accepts from a remote or otherwise uncontrolled source; this inference is derived from the fact that the overflow occurs when the decoder processes image data.

Generated by OpenCVE AI on July 31, 2026 at 11:02 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the OpenHTJ2K library to version 0.18.5 or newer, which contains the fix for the overflow.
  • If an upgrade cannot be performed, run the decoder in a sandboxed or least‑privilege environment and ensure that any incoming JPEG 2000 data is trusted before invoking the decoder functions.
  • Disable or filter processing of external JPEG 2000 files until a patch is applied, and monitor the OpenHTJ2K GitHub repository for additional security releases.

Generated by OpenCVE AI on July 31, 2026 at 11:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 31 Jul 2026 11:30:00 +0000

Type Values Removed Values Added
Title OpenHTJ2K Buffer Overflow Enables Remote Code Execution

Wed, 29 Jul 2026 07:00:00 +0000

Type Values Removed Values Added
Title OpenHTJ2K Buffer Overflow Enables Remote Code Execution

Sun, 26 Jul 2026 12:30:00 +0000

Type Values Removed Values Added
Title Buffer Overflow in OpenHTJ2K Image Decoder Enables Remote Code Execution

Wed, 22 Jul 2026 10:30:00 +0000

Type Values Removed Values Added
Title Buffer Overflow in OpenHTJ2K Image Decoder Enables Remote Code Execution

Fri, 17 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
Title Buffer Overflow in OpenHTJ2K Decoder Functions Enables Remote Code Execution

Thu, 16 Jul 2026 08:15:00 +0000

Type Values Removed Values Added
Title Buffer Overflow in OpenHTJ2K Decoder Functions Enables Remote Code Execution

Wed, 15 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-120
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 14 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
Description 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
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-07-15T14:01:51.284Z

Reserved: 2026-06-08T00:00:00.000Z

Link: CVE-2026-51808

cve-icon Vulnrichment

Updated: 2026-07-15T14:00:39.498Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T11:15:05Z

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')