{"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-02T00:03:27.574396Z","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":["arelease","opj0-97","start","v2.1.1","v2.1.2","v2.2.0","version.1.1","version.1.2","version.1.3","version.1.4","version.1.5","version.1.5.1","version.1.5.2","version.2.0","version.2.0.1","version.2.1","wg1n6848"],"database_specific":{"vanir_signatures":[{"id":"CVE-2017-14151-c31994f7","target":{"function":"opj_tcd_code_block_enc_allocate_data","file":"src/lib/openjp2/tcd.c"},"digest":{"function_hash":"21756756842348694274007457799770541153","length":481},"source":"https://github.com/uclouvain/openjpeg/commit/afb308b9ccbe129608c9205cf3bb39bbefad90b9","signature_version":"v1","signature_type":"Function","deprecated":false},{"id":"CVE-2017-14151-f4311815","target":{"file":"src/lib/openjp2/tcd.c"},"digest":{"line_hashes":["72913445967035955960360531008016096520","25868645229335602212299577138526423728","299939946168191236122398180799515628661","121719422806416951280291234778422709510"],"threshold":0.9},"source":"https://github.com/uclouvain/openjpeg/commit/afb308b9ccbe129608c9205cf3bb39bbefad90b9","signature_version":"v1","signature_type":"Line","deprecated":false}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-14151.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"8.0"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0"}]}]}}],"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"}]}