CVE-2018-20330 json
The tjLoadImage function in libjpeg-turbo 2.0.1 has an integer overflow with a resultant heap-based...
published 2018-12-21 7 y ago modified 2026-07-23 3 mo ago also EUVD-2018-12888 , JLSEC-2025-178
- cvss
- 8.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.0%
- EPSS 2.0% chance of exploitation in 30 days, percentile 80%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- julia JpegTurbo_jll 2.1.0+0
- libjpeg-turbo openSUSE Tumbleweed 8.2.2-65.2
opensuse advisories openSUSE-SU-2024:10952-1
- libjpeg-turbo Alpine 3.24, Alpine 3.23, Alpine 3.22 +12 more 2.0.2-r0
alpine advisories ALPINE-CVE-2018-20330
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-20330 updated cvss 4.3
libjpeg-turbo: heap-based buffer overflow in tjLoadImage
-
Red Hat Enterprise Linux 6 libjpeg-turbo Red Hat Enterprise Linux 7 turbojpeg, libjpeg-turbo, libjpeg-turbo-utils Red Hat Enterprise Linux 8 turbojpeg, libjpeg-turbo, libjpeg-turbo-utilsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.01% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| OSV | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| julia | JpegTurbo_jll | <2.1.0+0 |
2.1.0+0 |
Classification
References
-
github.com
/libjpeg-turbo/libjpeg-turbo/issues/304
patch, third-party-advisory, web
-
usn.ubuntu.com
/4190-1/
vendor-advisory, web
Sources
- CVE List CVE-2018-20330
- NVD CVE-2018-20330
- OSV JLSEC-2025-178
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.