{"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-04-09T06:14:20.330940Z","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":"0"},{"last_affected":"bb3d325624526c91646bb9af9578d7198c082d51"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"2.0.1"}]}}],"versions":["0.0.90","0.0.91","0.0.93","1.0.0","1.0.1","1.0.90","1.1.90","1.2.90","1.3.90","1.4.90","1.5.0","1.5.90","2.0.0","2.0.1","jpeg-1","jpeg-2","jpeg-3","jpeg-4","jpeg-4a","jpeg-5","jpeg-5a","jpeg-5b","jpeg-6","jpeg-6a","jpeg-6b"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-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"}]}