Every CVE Search/ Get API key

CVE-2018-20330

The tjLoadImage function in libjpeg-turbo 2.0.1 has an integer overflow with a resultant heap...

8.8 HighFix available

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

2.01%Up 1.4 points since Apr 14, 2021
90%50%10%1%

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 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV: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 HighCVSS: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

Affected packages
PackageAffectedFixed
libjpeg-turbo
Alpine:v3.10
before 2.0.2-r0
2.0.2-r0
libjpeg-turbo
Alpine:v3.11
before 2.0.2-r0
2.0.2-r0
libjpeg-turbo
Alpine:v3.12
before 2.0.2-r0
2.0.2-r0
libjpeg-turbo
Alpine:v3.13
before 2.0.2-r0
2.0.2-r0
libjpeg-turbo
Alpine:v3.14
before 2.0.2-r0
2.0.2-r0
libjpeg-turbo
Alpine:v3.15
before 2.0.2-r0
2.0.2-r0
libjpeg-turbo
Alpine:v3.16
before 2.0.2-r0
2.0.2-r0
libjpeg-turbo
Alpine:v3.17
before 2.0.2-r0
2.0.2-r0
libjpeg-turbo
Alpine:v3.18
before 2.0.2-r0
2.0.2-r0
libjpeg-turbo
Alpine:v3.19
before 2.0.2-r0
2.0.2-r0
Show 9 moreShow less
Affected packages
PackageAffectedFixed
libjpeg-turbo
Alpine:v3.20
before 2.0.2-r0
2.0.2-r0
libjpeg-turbo
Alpine:v3.21
before 2.0.2-r0
2.0.2-r0
libjpeg-turbo
Alpine:v3.22
before 2.0.2-r0
2.0.2-r0
libjpeg-turbo
Alpine:v3.23
before 2.0.2-r0
2.0.2-r0
libjpeg-turbo
Alpine:v3.24
before 2.0.2-r0
2.0.2-r0
JpegTurbo_jll
Julia
before 2.1.0+0
2.1.0+0
libjpeg-turbo
Ubuntu: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-turbo
Ubuntu: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-turbo
openSUSE:Tumbleweed
From an advisory covering 7 CVEs
before 8.2.2-65.2
8.2.2-65.2

History

History
RecordedChangedSources
affected, facts
affected
aliasesEUVD
first indexedCVE 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

Show 13 moreShow less
MoveEnter Open