Skip to content
Fencer Vulns
medium 5.5

CVE-2020-27841 json

There's a flaw in openjpeg in versions prior to 2.4.0 in src/lib/openjp2/pi.c.

published 2021-01-05 5 y ago modified 2026-07-25 3 mo ago also EUVD-2020-20339 , JLSEC-2026-538

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 openjpeg in versions prior to 2.4.0 in src/lib/openjp2/pi.c. When an attacker is able to provide crafted input to be processed by the openjpeg encoder, this could cause an out-of-bounds read. The greatest impact from 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-27841

  • 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-27841

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 SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +21 more 2.3.0-150000.3.8.1

suse advisories SUSE-SU-2022:3802-1

  • openjpeg2 Azure Linux 3.0 2.3.1-12

azure linux advisories AZL-45006

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

Vendor 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-27841 updated cvss 5.5

openjpeg: heap-based buffer overflows in lib/openjp2/pi.c

  • Red Hat Enterprise Linux 6 openjpeg, openjpeg-libs Red Hat Enterprise Linux 7 openjpeg, openjpeg2, openjpeg-libs, openjpeg2-tools
    affected: workaround, no fix planned “This flaw could be mitigated if OpenJPEG is not used for converting or encoding images, or untrusted input is not provided for these functions.”
  • Red Hat Enterprise Linux 8 openjpeg2, openjpeg2-tools
    not affected: vulnerable code not present

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.45% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).

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

References

Sources

Fencer Vulns 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.