CVE-2026-51807

Critical

Description

Heap-based out-of-bounds write in j2k_precinct_subband::parse_packet_header() in OpenHTJ2K versions 0.18.3 and earlier (fixed in v0.18.4) caused by missing bounds validation before coding-pass lengths are written to j2k_codeblock::pass_length[128]. A crafted JPEG 2000 codestream containing malformed PPM packet headers can trigger a heap-based out-of-bounds write in j2k_precinct_subband::parse_packet_header() in source/core/coding/coding_units.cpp due to missing bounds validation for the j2k_codeblock::pass_length[128] array which can lead to heap corruption and process termination.

SeverityCritical
CVSS9.8
Exploit probability—
ProductOpenHTJ2K
PublishedJul 14, 2026
First seenJul 14, 2026
Weakness typeCWE-121CWE-121

How to fix

Update
  • OpenHTJ2K0.18.4 or later

Affected products

ProductAffected versionsFixed in
OpenHTJ2Kv ≤ 0.18.30.18.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.