Buffer overflow in Uclouvain Openjpeg
CVE-2017-12982
The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject headers with a zero biBitCount, which allows remote attackers to cause a denial of service (memory allocation failure) in the opj_image_create function in lib/openjp2/image.c, related to the opj_aligned_alloc_n function in opj_malloc.c.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.028, 86.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 7 other repositories (Cao-Wuhui/ORCAS, ICSE2020-MemLock/MemLock_Benchmark, SZU-SE/MemLock_Benchmark, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/uclouvain/openjpeg/commit/baf0c1ad4572daa89caa3b12985bdd93530f0dd7 (Patch, Third Party Advisory, Issue Tracking)
- GLSA-201710-26 (vendor-advisory, Third Party Advisory)
- blogs.gentoo.org/ago/2017/08/14/openjpeg-memory-allocation-failure-in-opj_align… (Patch, VDB Entry, Third Party Advisory)
- github.com/uclouvain/openjpeg/issues/983 (Patch, Third Party Advisory, Issue Tracking)