{"id":"UBUNTU-CVE-2026-111151","details":"OpenJPH through 0.32.0 contains a heap out-of-bounds write vulnerability in the HTJ2K cleanup-pass decoder that allows attackers to corrupt memory via one-row codeblocks. Attackers can supply a crafted .j2c or .jph codestream with small precinct sizes, causing the decoder to write a second row past the codeblock buffer, resulting in memory corruption and crashes.","modified":"2026-10-17T12:58:03.912839236Z","published":"2026-10-16T00:00:00Z","upstream":["CVE-2026-111151"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-111151"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-111151"},{"type":"REPORT","url":"https://github.com/aous72/OpenJPH"},{"type":"REPORT","url":"https://github.com/aous72/OpenJPH/blob/23c422895ce6c3a156935222e4715ee0b7be952c/src/core/codestream/ojph_codeblock.cpp#L79-L84"},{"type":"REPORT","url":"https://github.com/aous72/OpenJPH/blob/23c422895ce6c3a156935222e4715ee0b7be952c/src/core/codestream/ojph_subband.cpp#L136-L142"},{"type":"REPORT","url":"https://github.com/aous72/OpenJPH/blob/23c422895ce6c3a156935222e4715ee0b7be952c/src/core/coding/ojph_block_decoder32.cpp#L1135-L1155"},{"type":"REPORT","url":"https://hackmd.io/@haind-pwn/openjph-htj2k-degenerate-codeblock-cleanup-oob-write"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/openjph-through-0.32.0-heap-out-of-bounds-write-in-htj2k-cleanup-pass-decoder"}],"affected":[{"package":{"name":"openjph","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/openjph?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.0-3build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libopenjph0.9","binary_version":"0.9.0-3build1"},{"binary_version":"0.9.0-3build1","binary_name":"openjph-tools"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-111151.json"}},{"package":{"name":"openjph","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/openjph?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.26.0-1","0.27.0-1","0.27.3-1","0.28.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libopenjph0.28","binary_version":"0.28.1-1"},{"binary_name":"openjph-tools","binary_version":"0.28.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-111151.json"}},{"package":{"name":"openjph","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/openjph?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.21.2-1","0.21.5-1","0.21.5-2","0.25.3-1","0.26.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.26.0-1","binary_name":"libopenjph0.26"},{"binary_version":"0.26.0-1","binary_name":"openjph-tools"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-111151.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}