CVEfocus › CVE database › CVE-2018-5785

CVE-2018-5785

EPSS 2.2% (higher than 83% of CVEs)Published 2018-01-19Updated 2024-08-05Assigner: mitre

In OpenJPEG 2.3.0, there is an integer overflow caused by an out-of-bounds left shift in the opj_j2k_setup_encoder function (openjp2/j2k.c). Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file.

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

33Fixed
1Fix pending
8Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04openjpeg2Fixed2.3.0-2build0.18.04.1UBUNTU-CVE-2018-5785
Ubuntu 16.04openjpegNot affected
vulnerable_code_not_present
Ubuntu 16.04openjpeg2Fixed2.1.2-1.1+deb9u3build0.16.04.1UBUNTU-CVE-2018-5785
Ubuntu 14.04openjpegFix pending
Debian 14openjpeg2Fixed2.3.0-2DEBIAN-CVE-2018-5785
Debian 13openjpeg2Fixed2.3.0-2DEBIAN-CVE-2018-5785
Debian 12openjpeg2Fixed2.3.0-2DEBIAN-CVE-2018-5785
Red Hat Enterprise Linux 8openjpegNot affected
Red Hat Enterprise Linux 8openjpeg2Fixed0:2.4.0-4.el8RHSA-2021:4251
Red Hat Enterprise Linux 8openjpeg2-develFixed0:2.4.0-4.el8RHSA-2021:4251
Red Hat Enterprise Linux 8openjpeg2-devel-docsFixed0:2.4.0-4.el8RHSA-2021:4251
Red Hat Enterprise Linux 8openjpeg2-toolsFixed0:2.4.0-4.el8RHSA-2021:4251
Red Hat Enterprise Linux 7openjpegNot affected
Red Hat Enterprise Linux 7openjpeg-develNot affected
Red Hat Enterprise Linux 7openjpeg-libsNot affected
Red Hat Enterprise Linux 6openjpegNot affected
Red Hat Enterprise Linux 6openjpeg-develNot affected
Red Hat Enterprise Linux 6openjpeg-libsNot affected
AlmaLinux 8openjpeg2Fixed2.4.0-4.el8ALSA-2021:4251
AlmaLinux 8openjpeg2-develFixed2.4.0-4.el8ALSA-2021:4251
AlmaLinux 8openjpeg2-devel-docsFixed2.4.0-4.el8ALSA-2021:4251
AlmaLinux 8openjpeg2-toolsFixed2.4.0-4.el8ALSA-2021:4251
Rocky Linux 8openjpeg2Fixed0:2.4.0-4.el8RLSA-2021:4251
Alpine Linux 3.24openjpegFixed2.3.0-r3ALPINE-CVE-2018-5785
Alpine Linux 3.23openjpegFixed2.3.0-r3ALPINE-CVE-2018-5785
Alpine Linux 3.22openjpegFixed2.3.0-r3ALPINE-CVE-2018-5785
Alpine Linux 3.21openjpegFixed2.3.0-r3ALPINE-CVE-2018-5785
Alpine Linux 3.20openjpegFixed2.3.0-r3ALPINE-CVE-2018-5785
Alpine Linux 3.19openjpegFixed2.3.0-r3ALPINE-CVE-2018-5785
Alpine Linux 3.18openjpegFixed2.3.0-r3ALPINE-CVE-2018-5785
Alpine Linux 3.17openjpegFixed2.3.0-r3ALPINE-CVE-2018-5785
Alpine Linux 3.16openjpegFixed2.3.0-r3ALPINE-CVE-2018-5785
Alpine Linux 3.15openjpegFixed2.3.0-r3ALPINE-CVE-2018-5785
Alpine Linux 3.14openjpegFixed2.3.0-r3ALPINE-CVE-2018-5785
Alpine Linux 3.13openjpegFixed2.3.0-r3ALPINE-CVE-2018-5785
Alpine Linux 3.12openjpegFixed2.3.0-r3ALPINE-CVE-2018-5785
Alpine Linux 3.11openjpegFixed2.3.0-r3ALPINE-CVE-2018-5785
Alpine Linux 3.10openjpegFixed2.3.0-r3ALPINE-CVE-2018-5785
Alpine Linux 3.9openjpegFixed2.3.0-r3ALPINE-CVE-2018-5785
Alpine Linux 3.8openjpegFixed2.3.0-r2ALPINE-CVE-2018-5785
Alpine Linux 3.7openjpegFixed2.3.0-r2ALPINE-CVE-2018-5785
Alpine Linux 3.6openjpegFixed2.3.0-r2ALPINE-CVE-2018-5785

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.