cve.bz

CVE-2020-27841 Heap-based Buffer Overflow

5.5 mediumEPSS 1.5%Fix available

Medium (5.5). EPSS 1.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 74th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-122 Heap-based Buffer Overflow
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-27841 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-27841?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-27841?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-27841 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
uclouvain:openjpegbefore 2.4.0
fedoraproject:fedora32
debian:debian_linux9.0
debian:debian_linux10.0
oracle:outside_in_technology8.5.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9openjpeg22.1.2-1.1+deb9u6DLA-2550-1
Debian10openjpeg22.3.0-2+deb10u2DSA-4882-1
Debian12, 13, 14openjpeg22.4.0-1DEBIAN-CVE-2020-27841
Ubuntu16.04:LTSghostscript9.26~dfsg+0-0ubuntu0.16.04.14UBUNTU-CVE-2020-27841 USN-4686-1
Ubuntu16.04:LTSopenjpeg22.1.2-1.1+deb9u6build0.16.04.1UBUNTU-CVE-2020-27841 USN-4880-1
Ubuntu18.04:LTSghostscript9.26~dfsg+0-0ubuntu0.18.04.14UBUNTU-CVE-2020-27841 USN-4686-1
Ubuntu18.04:LTSopenjpeg22.3.0-2+deb10u2build0.18.04.1UBUNTU-CVE-2020-27841 USN-5952-1
Ubuntu20.04:LTSopenjpeg22.3.1-1ubuntu4.20.04.1UBUNTU-CVE-2020-27841 USN-4685-1
Ubuntu22.04:LTSopenjpeg22.3.1-1ubuntu5UBUNTU-CVE-2020-27841
Ubuntu25.10, 26.10, Pro:18.04:LTS and 4 moreqtwebengine-opensource-srcno fix listedUBUNTU-CVE-2020-27841
UbuntuPro:16.04:LTSopenjpeg22.1.2-1.1+deb9u6ubuntu0.1~esm3USN-5952-1
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 19 moreopenjpeg22.3.0-150000.3.8.1SUSE-SU-2022:3802-1
openSUSELeap 15.3, Leap 15.4openjpeg22.3.0-150000.3.8.1SUSE-SU-2022:3802-1
Azure Linux3openjpeg22.3.1-12AZL-45006

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This issue does not affect openjpeg2 as shipped with Red Hat Enterprise Linux 8 because the affected functionality was introduced in the current master but is absent from the shipped release.

Red Hat's mitigation

This flaw could be mitigated if OpenJPEG is not used for converting or encoding images, or untrusted input is not provided for these functions.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6openjpegOut of support scope
Red Hat Enterprise Linux 7openjpegOut of support scope
Red Hat Enterprise Linux 7openjpeg2Out of support scope
Red Hat Enterprise Linux 8openjpeg2Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-27841.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON