Vulnerability 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.
CVSS Score
CRITICAL
Related Weaknesses (CWE)
References
- https://github.com/osamu620/OpenHTJ2K/blob/main/CHANGELOG
- https://github.com/osamu620/OpenHTJ2K/commit/0778b93
- https://github.com/osamu620/OpenHTJ2K/compare/0778b93...v0.18.4
- https://github.com/osamu620/OpenHTJ2K/releases
FAQ
What is CVE-2026-51807?
CVE-2026-51807 is a vulnerability with a CVSS score of 9.8 (CRITICAL). 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...
How severe is CVE-2026-51807?
CVE-2026-51807 has been rated CRITICAL with a CVSS base score of 9.8/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2026-51807?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.