SecurityContext

CVE-2026-51807: OpenHTJ2K - Buffer Overflow

  • Cve: CVE-2026-51807
  • Name: OpenHTJ2K - Buffer Overflow
  • 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.
  • Impact: Attackers can execute arbitrary code remotely, potentially leading to full system compromise.
  • Remediation: Update to the latest version beyond 0.18.4.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00671
  • Epss percentile: 0.52782
  • Assignee: [email protected]
  • Published at: 2026-07-14T23:17:29Z
  • Age in days: 133
  • Modified at: 2026-07-17T16:17:15Z
  • References total: 4
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-51807
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-121Stack-based Buffer Overflow

References

Same in every row:

  • Source: nvd
  • Tags:
Url
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

Projects

RepositoryLink kindsIndexedUrl
osamu620/OpenHTJ2Kcommit, compare, fix, releasesyes/v1/repositories/osamu620/OpenHTJ2K

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts