CVEfocus › CVE database › CVE-2018-20330

CVE-2018-20330

CVSS 8.8 HighEPSS 2.0% (higher than 81% of CVEs)Published 2018-12-21Updated 2024-08-05Assigner: mitre

The tjLoadImage function in libjpeg-turbo 2.0.1 has an integer overflow with a resultant heap-based buffer overflow via a BMP image because multiplication of pitch and height is mishandled, as demonstrated by tjbench.

What to do

Fixed builds are available from Alpine: see the table below for the fixed version per release.

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

15Fixed
16Not 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.04libjpeg-turboNot affected
vulnerable_code_not_present
Ubuntu 16.04libjpeg-turboNot affected
vulnerable_code_not_present
Red Hat Enterprise Linux 8libjpeg-turboNot affected
Red Hat Enterprise Linux 8libjpeg-turbo-develNot affected
Red Hat Enterprise Linux 8libjpeg-turbo-utilsNot affected
Red Hat Enterprise Linux 8turbojpegNot affected
Red Hat Enterprise Linux 8turbojpeg-develNot affected
Red Hat Enterprise Linux 7libjpeg-turboNot affected
Red Hat Enterprise Linux 7libjpeg-turbo-develNot affected
Red Hat Enterprise Linux 7libjpeg-turbo-staticNot affected
Red Hat Enterprise Linux 7libjpeg-turbo-utilsNot affected
Red Hat Enterprise Linux 7turbojpegNot affected
Red Hat Enterprise Linux 7turbojpeg-develNot affected
Red Hat Enterprise Linux 6libjpeg-turboNot affected
Red Hat Enterprise Linux 6libjpeg-turbo-develNot affected
Red Hat Enterprise Linux 6libjpeg-turbo-staticNot affected
Alpine Linux 3.24libjpeg-turboFixed2.0.2-r0ALPINE-CVE-2018-20330
Alpine Linux 3.23libjpeg-turboFixed2.0.2-r0ALPINE-CVE-2018-20330
Alpine Linux 3.22libjpeg-turboFixed2.0.2-r0ALPINE-CVE-2018-20330
Alpine Linux 3.21libjpeg-turboFixed2.0.2-r0ALPINE-CVE-2018-20330
Alpine Linux 3.20libjpeg-turboFixed2.0.2-r0ALPINE-CVE-2018-20330
Alpine Linux 3.19libjpeg-turboFixed2.0.2-r0ALPINE-CVE-2018-20330
Alpine Linux 3.18libjpeg-turboFixed2.0.2-r0ALPINE-CVE-2018-20330
Alpine Linux 3.17libjpeg-turboFixed2.0.2-r0ALPINE-CVE-2018-20330
Alpine Linux 3.16libjpeg-turboFixed2.0.2-r0ALPINE-CVE-2018-20330
Alpine Linux 3.15libjpeg-turboFixed2.0.2-r0ALPINE-CVE-2018-20330
Alpine Linux 3.14libjpeg-turboFixed2.0.2-r0ALPINE-CVE-2018-20330
Alpine Linux 3.13libjpeg-turboFixed2.0.2-r0ALPINE-CVE-2018-20330
Alpine Linux 3.12libjpeg-turboFixed2.0.2-r0ALPINE-CVE-2018-20330
Alpine Linux 3.11libjpeg-turboFixed2.0.2-r0ALPINE-CVE-2018-20330
Alpine Linux 3.10libjpeg-turboFixed2.0.2-r0ALPINE-CVE-2018-20330

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.