CVE-2020-6851
Description
OpenJPEG before 2.3.1.1 lacks validation in opj_j2k_update_image_dimensions, leading to a heap buffer overflow in opj_t1_clbl_decode_processor.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
OpenJPEG before 2.3.1.1 lacks validation in opj_j2k_update_image_dimensions, leading to a heap buffer overflow in opj_t1_clbl_decode_processor.
Vulnerability
A heap-based buffer overflow exists in OpenJPEG through version 2.3.1 (including the current master branch at commit ac37373) within the opj_t1_clbl_decode_processor function in openjp2/t1.c. The root cause is the lack of validation when calling opj_j2k_update_image_dimensions, which allows an attacker to craft a malicious JPEG2000 image that triggers an out-of-bounds write during tile decoding [1][2][3].
Exploitation
An attacker must supply a specially crafted JPEG2000 file that, when processed by an application using the affected OpenJPEG library, causes opj_j2k_update_image_dimensions to compute invalid image dimensions. Decoding then leads to a heap buffer overflow in opj_t1_clbl_decode_processor, as demonstrated by the address sanitizer stack trace showing a write of size 4 to an out-of-bounds heap address. No special privileges or network position beyond providing the file to a vulnerable system is required; user interaction is limited to opening or processing the malformed image [3].
Impact
Successful exploitation results in a heap-based buffer overflow, which can cause a denial of service (crash) and may allow an attacker to corrupt memory. Depending on the context, this could potentially lead to arbitrary code execution or other memory-related compromises, though the public references primarily demonstrate a crash [2][3].
Mitigation
Red Hat has released patches for RHEL 7 and RHEL 8 distributions (openjpeg2 updated to versions 2.3.1-2.el8_1 and 2.3.0-9.el8_0, respectively) via advisories RHSA-2020:0262, RHSA-2020:0274, and RHSA-2020:0296 [1][2][4]. Users of other platforms should update to a version incorporating the fix (after 2.3.1). No workaround is available if the library cannot be updated; the recommended action is to apply the vendor-provided patch or upgrade to a corrected release.
AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
25- OpenJPEG/OpenJPEGdescription
- osv-coords23 versionspkg:rpm/opensuse/openjpeg2&distro=openSUSE%20Leap%2015.3pkg:rpm/suse/openjpeg2&distro=SUSE%20Enterprise%20Storage%206pkg:rpm/suse/openjpeg2&distro=SUSE%20Enterprise%20Storage%207pkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOSpkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-ESPOSpkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3pkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP3pkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP2pkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCLpkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-BCLpkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015pkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/openjpeg2&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/openjpeg2&distro=SUSE%20Manager%20Proxy%204.1pkg:rpm/suse/openjpeg2&distro=SUSE%20Manager%20Retail%20Branch%20Server%204.1pkg:rpm/suse/openjpeg2&distro=SUSE%20Manager%20Server%204.1
< 2.3.0-150000.3.5.1+ 22 more
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
- (no CPE)range: < 2.3.0-150000.3.5.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
10- access.redhat.com/errata/RHSA-2020:0262mitrevendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2020:0274mitrevendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2020:0296mitrevendor-advisoryx_refsource_REDHAT
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LACIIDDCKZJEPKTTFILSOSBQL7L3FC6V/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XBRMI2D3XPVWKE3V52KRBW7BJVLS5LD3/mitrevendor-advisoryx_refsource_FEDORA
- www.debian.org/security/2021/dsa-4882mitrevendor-advisoryx_refsource_DEBIAN
- github.com/uclouvain/openjpeg/issues/1228mitrex_refsource_MISC
- lists.debian.org/debian-lts-announce/2020/01/msg00025.htmlmitremailing-listx_refsource_MLIST
- lists.debian.org/debian-lts-announce/2020/07/msg00008.htmlmitremailing-listx_refsource_MLIST
- www.oracle.com/security-alerts/cpujul2020.htmlmitrex_refsource_MISC
News mentions
0No linked articles in our index yet.