Heap-based out-of-bounds write in j2kprecinctsubband::parsepacketheader() 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 j2kcodeblock::passlength[128]. A crafted JPEG 2000 codestream containing malformed PPM packet headers can trigger a heap-based out-of-bounds write in j2kprecinctsubband::parsepacketheader() in source/core/coding/codingunits.cpp due to missing bounds validation for the j2kcodeblock::pass_length[128] array which can lead to heap corruption and process termination.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/51xxx/CVE-2026-51807.json",
"cna_assigner": "mitre"
}