{"id":"CVE-2017-14151","details":"An off-by-one error was discovered in opj_tcd_code_block_enc_allocate_data in lib/openjp2/tcd.c in OpenJPEG 2.2.0. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service (heap-based buffer overflow affecting opj_mqc_flush in lib/openjp2/mqc.c and opj_t1_encode_cblk in lib/openjp2/t1.c) or possibly remote code execution.","modified":"2026-04-11T04:47:41.212389Z","published":"2017-09-05T16:29:00.213Z","related":["openSUSE-SU-2024:11120-1"],"references":[{"type":"ADVISORY","url":"http://www.debian.org/security/2017/dsa-4013"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/100633"},{"type":"FIX","url":"https://github.com/uclouvain/openjpeg/commit/afb308b9ccbe129608c9205cf3bb39bbefad90b9"},{"type":"FIX","url":"https://github.com/uclouvain/openjpeg/issues/982"},{"type":"FIX","url":"https://blogs.gentoo.org/ago/2017/08/16/openjpeg-heap-based-buffer-overflow-in-opj_mqc_flush-mqc-c/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/uclouvain/openjpeg","events":[{"introduced":"0"},{"last_affected":"3d7cde5fc9fbc5618d02160900d32e02ed12a00e"},{"fixed":"afb308b9ccbe129608c9205cf3bb39bbefad90b9"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"2.2.0"}]}}],"versions":["v2.2.0"],"database_specific":{"unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"8.0"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0"}]}],"vanir_signatures":[{"target":{"function":"opj_tcd_code_block_enc_allocate_data","file":"src/lib/openjp2/tcd.c"},"signature_type":"Function","source":"https://github.com/uclouvain/openjpeg/commit/afb308b9ccbe129608c9205cf3bb39bbefad90b9","digest":{"length":481,"function_hash":"21756756842348694274007457799770541153"},"id":"CVE-2017-14151-c31994f7","deprecated":false,"signature_version":"v1"},{"target":{"file":"src/lib/openjp2/tcd.c"},"signature_type":"Line","source":"https://github.com/uclouvain/openjpeg/commit/afb308b9ccbe129608c9205cf3bb39bbefad90b9","digest":{"threshold":0.9,"line_hashes":["72913445967035955960360531008016096520","25868645229335602212299577138526423728","299939946168191236122398180799515628661","121719422806416951280291234778422709510"]},"id":"CVE-2017-14151-f4311815","deprecated":false,"signature_version":"v1"}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-14151.json","vanir_signatures_modified":"2026-04-11T04:47:41Z"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}