{"id":"CVE-2018-20330","aliases":["ALPINE-CVE-2018-20330","BELL-CVE-2018-20330","EUVD-2018-12888","GHSA-4qq8-w9wg-4qw8","JLSEC-2025-178","UBUNTU-CVE-2018-20330","USN-4190-1","openSUSE-SU-2024:10952-1"],"status":"published","title":"The tjLoadImage function in libjpeg-turbo 2.0.1 has an integer overflow with a resultant heap...","description":"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.","severity":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02006,"percentile":0.80958,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-190","CWE-787"],"published":"2018-12-21T09:00:00Z","modified":"2026-10-23T17:17:55Z","fixes":[{"ecosystem":"Alpine:v3.10","package":"libjpeg-turbo","fixed_in":["2.0.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.11","package":"libjpeg-turbo","fixed_in":["2.0.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.12","package":"libjpeg-turbo","fixed_in":["2.0.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.13","package":"libjpeg-turbo","fixed_in":["2.0.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"libjpeg-turbo","fixed_in":["2.0.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"libjpeg-turbo","fixed_in":["2.0.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"libjpeg-turbo","fixed_in":["2.0.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"libjpeg-turbo","fixed_in":["2.0.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"libjpeg-turbo","fixed_in":["2.0.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"libjpeg-turbo","fixed_in":["2.0.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"libjpeg-turbo","fixed_in":["2.0.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"libjpeg-turbo","fixed_in":["2.0.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"libjpeg-turbo","fixed_in":["2.0.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"libjpeg-turbo","fixed_in":["2.0.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"libjpeg-turbo","fixed_in":["2.0.2-r0"],"sources":["osv"]},{"ecosystem":"Julia","package":"JpegTurbo_jll","fixed_in":["2.1.0+0"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.10","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.11","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.12","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.13","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2-r0"}]}]},{"source":"osv","ecosystem":"Julia","package":"JpegTurbo_jll","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.1.0+0"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.2-0ubuntu3.3"}]}],"versions":["1.3.0-0ubuntu2","1.4.2-0ubuntu1","1.4.2-0ubuntu2","1.4.2-0ubuntu3","1.4.2-0ubuntu3.1"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.2-0ubuntu5.18.04.3"}]}],"versions":["1.5.2-0ubuntu5","1.5.2-0ubuntu5.18.04.1"],"bundled":4},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.2.2-65.2"}]}],"bundled":7}],"products":[{"vendor":"libjpeg-turbo","product":"libjpeg-turbo"}],"references":[{"url":"https://github.com/libjpeg-turbo/libjpeg-turbo/issues/304","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://usn.ubuntu.com/4190-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20330"},{"url":"https://github.com/advisories/GHSA-4qq8-w9wg-4qw8"},{"url":"https://security.alpinelinux.org/vuln/CVE-2018-20330","tags":["advisory"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2018-20330","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-20330","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4190-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-20330","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-14498","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-19664","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-2201","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2017-15232","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-1152","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-11813","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-19644","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-19664","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-20330","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-13790","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2018-20330","description":"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.","status":"published","published":"2018-12-21T09:00:00Z","modified":"2024-08-05T11:58:18.787Z","updated_at":"2026-11-02T14:34:59.872731Z"}],"euvd":[{"id":"EUVD-2018-12888","description":"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.","status":"published","published":"2018-12-21T09:00:00Z","modified":"2024-08-05T11:58:18Z","updated_at":"2026-11-03T02:39:31.423203Z"}],"ghsa":[{"id":"GHSA-4qq8-w9wg-4qw8","title":"The tjLoadImage function in libjpeg-turbo 2.0.1 has an integer overflow with a resultant heap...","description":"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.","status":"published","published":"2022-05-13T01:19:53Z","modified":"2023-02-01T05:05:54Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:50:17.420383Z"}],"nvd":[{"id":"CVE-2018-20330","description":"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.","status":"published","published":"2018-12-21T09:29:00.247Z","modified":"2026-06-17T01:52:37.997Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-190","CWE-787"],"updated_at":"2026-11-02T14:04:50.99633Z"}],"osv":[{"id":"ALPINE-CVE-2018-20330","description":"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.","status":"published","published":"2018-12-21T09:29:00.247Z","modified":"2026-10-23T17:17:55.246316481Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:27:47.187336Z"},{"id":"BELL-CVE-2018-20330","title":"CVE-2018-20330 does not affect BellSoft software","status":"withdrawn","published":"2023-08-31T12:14:56.408683Z","modified":"2026-01-26T09:46:38.724249Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:28:14.701973Z"},{"id":"CVE-2018-20330","description":"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.","status":"published","published":"2018-12-21T09:29:00.247Z","modified":"2026-10-20T10:48:03.220711941Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:09.145458Z"},{"id":"JLSEC-2025-178","title":"The tjLoadImage function in libjpeg-turbo 2.0.1 has an integer overflow with a resultant heap-based...","description":"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.","status":"published","published":"2025-10-21T17:39:06.495Z","modified":"2026-07-23T22:30:17.289023282Z","cvss":[{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium"},{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:47:17.805107Z"},{"id":"UBUNTU-CVE-2018-20330","description":"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.","status":"withdrawn","published":"2018-12-21T09:29:00Z","modified":"2026-02-04T03:35:18.855385Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:17.91743Z"},{"id":"openSUSE-SU-2024:10952-1","title":"libjpeg-turbo-2.1.1-65.2 on GA media","description":"These are all security issues fixed in the libjpeg-turbo-2.1.1-65.2 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:40:26.197209Z","updated_at":"2026-11-02T16:58:34.894275Z"},{"id":"USN-4190-1","title":"libjpeg-turbo vulnerabilities","description":"It was discovered that libjpeg-turbo incorrectly handled certain BMP images.\nAn attacker could possibly use this issue to expose sensitive information.\nThis issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS.\n(CVE-2018-14498)\n\nIt was discovered that libjpeg-turbo incorrectly handled certain JPEG images.\nAn attacker could possibly use this issue to expose sensitive information.\nThis issue only affected Ubuntu 19.04. (CVE-2018-19664)\n\nIt was discovered that libjpeg-turbo incorrectly handled certain BMP images.\nAn attacker could possibly use this issue to execute arbitrary code. This\nissue only affected Ubuntu 19.04. (CVE-2018-20330)\n\nIt was discovered that libjpeg-turbo incorrectly handled certain JPEG images.\nAn attacker could possibly cause a denial of service or execute arbitrary code.\n(CVE-2019-2201)\n","status":"published","published":"2019-11-13T14:35:21Z","modified":"2026-04-22T10:02:28.121299Z","updated_at":"2026-11-02T16:58:14.547547Z"}]}}
