Out-of-bounds write in OpenJPEG - CVE-2017-14041

 

Out-of-bounds write in OpenJPEG - CVE-2017-14041

Published: August 31, 2017 / Updated: August 3, 2020


Vulnerability identifier: #VU33226
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-14041
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

A stack-based buffer overflow was discovered in the pgxtoimage function in bin/jp2/convert.c in OpenJPEG 2.2.0. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service or possibly remote code execution.


Affected software

OpenJPEG
openjpeg (Alpine package)
openjpeg2
mingw-openjpeg2
Slackware Linux
Fedora

How to mitigate CVE-2017-14041

Install update from vendor's website.

OpenJPEG - update to 2.3.0
openjpeg (Alpine package) - update to 2.2.0-r0
openjpeg2 - addressed in versions 2.2.0-3.fc25, 2.2.0-3.fc26, 2.2.0-3.fc27
mingw-openjpeg2 - addressed in versions 2.2.0-3.fc25, 2.2.0-3.fc26

External References

Related Security Bulletins