{"id":"CVE-2018-20330","details":"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.","modified":"2026-07-08T17:18:22.869278Z","published":"2018-12-21T09:29:00.247Z","related":["openSUSE-SU-2024:10952-1"],"references":[{"type":"WEB","url":"https://usn.ubuntu.com/4190-1/"},{"type":"FIX","url":"https://github.com/libjpeg-turbo/libjpeg-turbo/issues/304"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libjpeg-turbo/libjpeg-turbo","events":[{"introduced":"bb3d325624526c91646bb9af9578d7198c082d51"},{"last_affected":"bb3d325624526c91646bb9af9578d7198c082d51"}],"database_specific":{"cpe":"cpe:2.3:a:libjpeg-turbo:libjpeg-turbo:2.0.1:*:*:*:*:*:*:*","extracted_events":[{"introduced":"2.0.1"},{"last_affected":"2.0.1"}],"source":"CPE_STRING"}}],"versions":["2.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-20330.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}