CVE-2020-27845 json
There's a flaw in src/lib/openjp2/pi.c of openjpeg in versions prior to 2.4.0.
published 5y ago modified 3mo ago also EUVD-2020-20343 , JLSEC-2026-542
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
There's a flaw in src/lib/openjp2/pi.c of openjpeg in versions prior to 2.4.0. If an attacker is able to provide untrusted input to openjpeg's conversion/encoding functionality, they could cause an out-of-bounds read. The highest impact of this flaw is to application availability.
Patch / fix
- julia OpenJpeg_jll 2.4.0+0
- uclouvain openjpeg 2.4.0
- openjpeg2 Debian 14, Debian 13, Debian 12 2.4.0-1
debian advisories DEBIAN-CVE-2020-27845
- openjpeg2 Ubuntu 16.04 LTS 2.1.2-1.1+deb9u6build0.16.04.1
- openjpeg2 Ubuntu 18.04 LTS 2.3.0-2+deb10u2build0.18.04.1
- openjpeg2 Ubuntu 20.04 LTS 2.3.1-1ubuntu4.20.04.1
- openjpeg2 Ubuntu 22.04 LTS 2.3.1-1ubuntu5
- ghostscript Ubuntu 16.04 LTS 9.26~dfsg+0-0ubuntu0.16.04.14
- ghostscript Ubuntu 18.04 LTS 9.26~dfsg+0-0ubuntu0.18.04.14
ubuntu advisories UBUNTU-CVE-2020-27845
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- openjpeg2 RHEL 8 2.4.0-4.el8
- openjpeg2-tools RHEL 8 2.4.0-4.el8
red hat advisories RHSA-2021:4251
- openjpeg SLES for SAP 15, SLES 15-LTSS, SLES 15 SP2-BCL +9 more 1.5.2-150000.4.10.1
- openjpeg2 SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +21 more 2.3.0-150000.3.8.1
- openjpeg2 SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +5 more 2.1.0-4.18.2
suse advisories SUSE-SU-2022:4082-1SUSE-SU-2022:3802-1SUSE-SU-2022:3801-1
- openjpeg2 AlmaLinux 8 2.4.0-4.el8
- openjpeg2-tools AlmaLinux 8 2.4.0-4.el8
almalinux advisories ALSA-2021:4251
- openjpeg2 Rocky Linux 8 2.4.0-4.el8
rocky linux advisories RLSA-2021:4251
- openjpeg2 Azure Linux 3.0 2.3.1-12
azure linux advisories AZL-44712
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- openjpeg2 Arch Linux 2.4.0-1
arch linux advisories AVG-1339
Is CVE-2020-27845 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-27845 updated cvss 5.5
openjpeg: heap-based buffer overflow in functions opj_pi_next_rlcp, opj_pi_next_rpcl and opj_pi_next_lrcp in openjp2/pi.c
-
Red Hat Enterprise Linux 6 openjpeg, openjpeg-libs Red Hat Enterprise Linux 7 openjpeg, openjpeg2, openjpeg-libs, openjpeg2-toolsaffected: no fix planned “Out of support scope”
-
Red Hat CodeReady Linux Builder (v. 8) openjpeg2-tools 2.4.0-4.el8 Red Hat Enterprise Linux AppStream (v. 8) openjpeg2 2.4.0-4.el8, openjpeg2-tools 2.4.0-4.el8fixed: vendor fix RHSA-2021:4251
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.46% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
| OSV | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| julia | OpenJpeg_jll | <2.4.0+0 |
2.4.0+0 |
Affected products
- n/a openjpeg
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
debian.org
/security/2021/dsa-4882
vendor-advisory, patch, third-party-advisory, web
-
bugzilla.redhat.com
/show_bug.cgi?id=1907523
issue-tracking, patch, third-party-advisory, web
-
oracle.com
/security-alerts/cpuApr2021.html
patch, third-party-advisory, web
-
oracle.com
//security-alerts/cpujul2021.html
patch, third-party-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/WJUPGIZE6A4O52EBOF75MCXJOL6MUCRV/
vendor-advisory, web
-
security.gentoo.org
/glsa/202101-29
vendor-advisory, third-party-advisory, web
-
lists.debian.org
/debian-lts-announce/2021/02/msg00011.html
mailing-list, third-party-advisory, web
Sources
- CVE List CVE-2020-27845
- NVD CVE-2020-27845
- OSV JLSEC-2026-542
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.