CVE-2018-20330
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | libjpeg-turbo | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | libjpeg-turbo | Not affected vulnerable_code_not_present | ||
| Red Hat Enterprise Linux 8 | libjpeg-turbo | Not affected | ||
| Red Hat Enterprise Linux 8 | libjpeg-turbo-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libjpeg-turbo-utils | Not affected | ||
| Red Hat Enterprise Linux 8 | turbojpeg | Not affected | ||
| Red Hat Enterprise Linux 8 | turbojpeg-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libjpeg-turbo | Not affected | ||
| Red Hat Enterprise Linux 7 | libjpeg-turbo-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libjpeg-turbo-static | Not affected | ||
| Red Hat Enterprise Linux 7 | libjpeg-turbo-utils | Not affected | ||
| Red Hat Enterprise Linux 7 | turbojpeg | Not affected | ||
| Red Hat Enterprise Linux 7 | turbojpeg-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | libjpeg-turbo | Not affected | ||
| Red Hat Enterprise Linux 6 | libjpeg-turbo-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | libjpeg-turbo-static | Not affected | ||
| Alpine Linux 3.24 | libjpeg-turbo | Fixed | 2.0.2-r0 | ALPINE-CVE-2018-20330 |
| Alpine Linux 3.23 | libjpeg-turbo | Fixed | 2.0.2-r0 | ALPINE-CVE-2018-20330 |
| Alpine Linux 3.22 | libjpeg-turbo | Fixed | 2.0.2-r0 | ALPINE-CVE-2018-20330 |
| Alpine Linux 3.21 | libjpeg-turbo | Fixed | 2.0.2-r0 | ALPINE-CVE-2018-20330 |
| Alpine Linux 3.20 | libjpeg-turbo | Fixed | 2.0.2-r0 | ALPINE-CVE-2018-20330 |
| Alpine Linux 3.19 | libjpeg-turbo | Fixed | 2.0.2-r0 | ALPINE-CVE-2018-20330 |
| Alpine Linux 3.18 | libjpeg-turbo | Fixed | 2.0.2-r0 | ALPINE-CVE-2018-20330 |
| Alpine Linux 3.17 | libjpeg-turbo | Fixed | 2.0.2-r0 | ALPINE-CVE-2018-20330 |
| Alpine Linux 3.16 | libjpeg-turbo | Fixed | 2.0.2-r0 | ALPINE-CVE-2018-20330 |
| Alpine Linux 3.15 | libjpeg-turbo | Fixed | 2.0.2-r0 | ALPINE-CVE-2018-20330 |
| Alpine Linux 3.14 | libjpeg-turbo | Fixed | 2.0.2-r0 | ALPINE-CVE-2018-20330 |
| Alpine Linux 3.13 | libjpeg-turbo | Fixed | 2.0.2-r0 | ALPINE-CVE-2018-20330 |
| Alpine Linux 3.12 | libjpeg-turbo | Fixed | 2.0.2-r0 | ALPINE-CVE-2018-20330 |
| Alpine Linux 3.11 | libjpeg-turbo | Fixed | 2.0.2-r0 | ALPINE-CVE-2018-20330 |
| Alpine Linux 3.10 | libjpeg-turbo | Fixed | 2.0.2-r0 | ALPINE-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:
- https://usn.ubuntu.com/4190-1/ (vendor-advisory)
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.