Description
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.
References (5)
Core 5
Core References
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/uclouvain/openjpeg/issues/982
Third Party Advisory vendor-advisory
x_refsource_debian
http://www.debian.org/security/2017/dsa-4013
Third Party Advisory, VDB Entry vdb-entry
x_refsource_bid
http://www.securityfocus.com/bid/100633
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/uclouvain/openjpeg/commit/afb308b9ccbe129608c9205cf3bb39bbefad90b9
Patch, Third Party Advisory, VDB Entry x_refsource_misc
https://blogs.gentoo.org/ago/2017/08/16/openjpeg-heap-based-buffer-overflow-in-opj_mqc_flush-mqc-c/
Scores
CVSS v3
8.8
EPSS
0.0091
EPSS Percentile
75.9%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Details
CWE
CWE-119
Status
published
Products (3)
debian/debian_linux
8.0
debian/debian_linux
9.0
uclouvain/openjpeg
2.2.0
Published
Sep 05, 2017
Tracked Since
Feb 18, 2026