{"id":"CVE-2017-14151","published":"2017-09-05T16:00:00Z","modified":"2024-08-05T19:20:40Z","title":"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","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.05156,"percentile":0.92625,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/uclouvain/openjpeg/issues/982","tags":["x_refsource_MISC"]},{"url":"http://www.debian.org/security/2017/dsa-4013","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://www.securityfocus.com/bid/100633","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://github.com/uclouvain/openjpeg/commit/afb308b9ccbe129608c9205cf3bb39bbefad90b9","tags":["x_refsource_MISC"]},{"url":"https://blogs.gentoo.org/ago/2017/08/16/openjpeg-heap-based-buffer-overflow-in-opj_mqc_flush-mqc-c/","tags":["x_refsource_MISC"]}],"priority":{"score":18.5,"factors":[{"name":"EPSS percentile","points":18.52}]},"summary":{"text":"An off-by-one error in the function opj_tcd_code_block_enc_allocate_data in lib/openjp2/tcd.c of OpenJPEG 2.2.0, an open-source JPEG 2000 library, causes out-of-bounds writes. The flaw is in the library's code block encoding component. An attacker can trigger a heap-based buffer overflow, potentially causing remote denial of service or possibly remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:09:11Z"},"euvd":{"id":"EUVD-2017-5662","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cve-2016-10504-family-cve-2016-10504","parents":[{"from":"CVE-2016-10504","to":"CVE-2017-14151","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/lib/openjp2/tcd.c"],"commits":["https://github.com/uclouvain/openjpeg/commit/397f62c0a838e15d667ef50e27d5d011d2c79c04","https://github.com/uclouvain/openjpeg/commit/afb308b9ccbe129608c9205cf3bb39bbefad90b9"],"basis":"shared function","functions":["opj_tcd_code_block_enc_allocate_data"]}]}]}}