CVE-2018-20330
The tjLoadImage function in libjpeg-turbo 2.0.1 has an integer overflow with a resultant heap...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.8
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.
- Record
CVE-2018-20330- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-190, CWE-787
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2018-20330- Updated
- 2026-11-02
EUVDEUVD-2018-12888 No score
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.
- Record
EUVD-2018-12888- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-4qq8-w9wg-4qw8
8.8
The tjLoadImage function in libjpeg-turbo 2.0.1 has an integer overflow with a resultant heap...
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.
- Record
GHSA-4qq8-w9wg-4qw8- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSVALPINE-CVE-2018-20330
8.8
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.
- Record
ALPINE-CVE-2018-20330- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2018-20330
8.8
CVE-2018-20330 does not affect BellSoft software
- Record
BELL-CVE-2018-20330- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 5 moreShow less
OSV
8.8
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.
- Record
CVE-2018-20330- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVJLSEC-2025-178
8.8
The tjLoadImage function in libjpeg-turbo 2.0.1 has an integer overflow with a resultant heap-based...
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.
- Record
JLSEC-2025-178- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-20330
8.8
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.
- Record
UBUNTU-CVE-2018-20330- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10952-1 No score
libjpeg-turbo-2.1.1-65.2 on GA media
These are all security issues fixed in the libjpeg-turbo-2.1.1-65.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10952-1- Updated
- 2026-11-02
OSVUSN-4190-1 No score
libjpeg-turbo vulnerabilities
It was discovered that libjpeg-turbo incorrectly handled certain BMP images. An attacker could possibly use this issue to expose sensitive information. This issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2018-14498)
It was discovered that libjpeg-turbo incorrectly handled certain JPEG images. An attacker could possibly use this issue to expose sensitive information. This issue only affected Ubuntu 19.04. (CVE-2018-19664)
It was discovered that libjpeg-turbo incorrectly handled certain BMP images. An attacker could possibly use this issue to execute arbitrary code. This issue only affected Ubuntu 19.04. (CVE-2018-20330)
It was discovered that libjpeg-turbo incorrectly handled certain JPEG images. An attacker could possibly cause a denial of service or execute arbitrary code. (CVE-2019-2201)
- Record
USN-4190-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libjpeg-turboAlpine:v3.10 |
before 2.0.2-r0 | 2.0.2-r0 |
libjpeg-turboAlpine:v3.11 |
before 2.0.2-r0 | 2.0.2-r0 |
libjpeg-turboAlpine:v3.12 |
before 2.0.2-r0 | 2.0.2-r0 |
libjpeg-turboAlpine:v3.13 |
before 2.0.2-r0 | 2.0.2-r0 |
libjpeg-turboAlpine:v3.14 |
before 2.0.2-r0 | 2.0.2-r0 |
libjpeg-turboAlpine:v3.15 |
before 2.0.2-r0 | 2.0.2-r0 |
libjpeg-turboAlpine:v3.16 |
before 2.0.2-r0 | 2.0.2-r0 |
libjpeg-turboAlpine:v3.17 |
before 2.0.2-r0 | 2.0.2-r0 |
libjpeg-turboAlpine:v3.18 |
before 2.0.2-r0 | 2.0.2-r0 |
libjpeg-turboAlpine:v3.19 |
before 2.0.2-r0 | 2.0.2-r0 |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libjpeg-turboAlpine:v3.20 |
before 2.0.2-r0 | 2.0.2-r0 |
libjpeg-turboAlpine:v3.21 |
before 2.0.2-r0 | 2.0.2-r0 |
libjpeg-turboAlpine:v3.22 |
before 2.0.2-r0 | 2.0.2-r0 |
libjpeg-turboAlpine:v3.23 |
before 2.0.2-r0 | 2.0.2-r0 |
libjpeg-turboAlpine:v3.24 |
before 2.0.2-r0 | 2.0.2-r0 |
JpegTurbo_jllJulia |
before 2.1.0+0 | 2.1.0+0 |
libjpeg-turboUbuntu:16.04:LTS From an advisory covering 4 CVEs |
before 1.4.2-0ubuntu3.3, plus listed versions 1.3.0-0ubuntu21.4.2-0ubuntu11.4.2-0ubuntu21.4.2-0ubuntu31.4.2-0ubuntu3.1 |
1.4.2-0ubuntu3.3 |
libjpeg-turboUbuntu:18.04:LTS From an advisory covering 4 CVEs |
before 1.5.2-0ubuntu5.18.04.3, plus listed versions 1.5.2-0ubuntu51.5.2-0ubuntu5.18.04.1 |
1.5.2-0ubuntu5.18.04.3 |
libjpeg-turboopenSUSE:Tumbleweed From an advisory covering 7 CVEs |
before 8.2.2-65.2 | 8.2.2-65.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-20330 is a high vulnerability (CVSS 8.8) in Libjpeg-turbo, published December 21, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.01%, the 80th percentile. Fixed in libjpeg-turbo 2.0.2-r0.
References
github.com/libjpeg-turbo/libjpeg-turbo/issues/304
usn.ubuntu.com/4190-1
nvd.nist.gov/vuln/detail/CVE-2018-20330
github.com/advisories/GHSA-4qq8-w9wg-4qw8
security.alpinelinux.org/vuln/CVE-2018-20330
docs.bell-sw.com/security/cves/CVE-2018-20330
Show 13 moreShow less
ubuntu.com/security/CVE-2018-20330
ubuntu.com/security/notices/USN-4190-1
cve.org/CVERecord?id=CVE-2018-20330
ubuntu.com/security/CVE-2018-14498
ubuntu.com/security/CVE-2018-19664
ubuntu.com/security/CVE-2019-2201
suse.com/security/cve/CVE-2017-15232
suse.com/security/cve/CVE-2018-1152
suse.com/security/cve/CVE-2018-11813
suse.com/security/cve/CVE-2018-19644
suse.com/security/cve/CVE-2018-19664
suse.com/security/cve/CVE-2018-20330
suse.com/security/cve/CVE-2020-13790