CVE-2026-51807: n/a
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.
AI Analysis
Technical Summary
CVE-2026-51807 describes a heap-based out-of-bounds write in the function j2k_precinct_subband::parse_packet_header() within OpenHTJ2K versions 0.18.3 and earlier. The vulnerability arises from missing bounds checking before writing coding-pass lengths to the fixed-size array j2k_codeblock::pass_length[128]. A specially crafted JPEG 2000 codestream containing malformed PPM packet headers can exploit this to corrupt heap memory, potentially causing process termination. This vulnerability is categorized under CWE-121 (Stack-based Buffer Overflow). The issue is resolved in OpenHTJ2K version 0.18.4.
Potential Impact
Successful exploitation can lead to heap corruption and process termination, resulting in denial of service. The CVSS score of 9.8 indicates high impact on confidentiality, integrity, and availability. No known exploits in the wild have been reported.
Mitigation Recommendations
A fix is available in OpenHTJ2K version 0.18.4. Users should upgrade to version 0.18.4 or later to remediate this vulnerability. Patch status is not explicitly confirmed in the vendor advisory, but the description states the issue is fixed in v0.18.4. No additional mitigations are specified.
CVE-2026-51807: n/a
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 v3.1
Score 9.8critical
Affected software
pkg:github/osamu620/OpenHTJ2KRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-51807 describes a heap-based out-of-bounds write in the function j2k_precinct_subband::parse_packet_header() within OpenHTJ2K versions 0.18.3 and earlier. The vulnerability arises from missing bounds checking before writing coding-pass lengths to the fixed-size array j2k_codeblock::pass_length[128]. A specially crafted JPEG 2000 codestream containing malformed PPM packet headers can exploit this to corrupt heap memory, potentially causing process termination. This vulnerability is categorized under CWE-121 (Stack-based Buffer Overflow). The issue is resolved in OpenHTJ2K version 0.18.4.
Potential Impact
Successful exploitation can lead to heap corruption and process termination, resulting in denial of service. The CVSS score of 9.8 indicates high impact on confidentiality, integrity, and availability. No known exploits in the wild have been reported.
Mitigation Recommendations
A fix is available in OpenHTJ2K version 0.18.4. Users should upgrade to version 0.18.4 or later to remediate this vulnerability. Patch status is not explicitly confirmed in the vendor advisory, but the description states the issue is fixed in v0.18.4. No additional mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-06-08T00:00:00.000Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a56bcac68715ace4355d8f5
Added to database: 07/14/2026, 22:48:12 UTC
Last enriched: 07/22/2026, 22:51:59 UTC
Last updated: 08/16/2026, 00:41:14 UTC
Views: 76
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.