{"schemaVersion":3,"id":"CVE-2018-20330","aliases":["ALPINE-CVE-2018-20330","UBUNTU-CVE-2018-20330"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2018-12-21T09:00:00.000Z","modified":"2024-08-05T11:58:18.787Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Alpine","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true}]},"epss":{"probability":0.02006,"percentile":0.80526,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02006},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01995,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02006,"percentile":0.80526}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01995,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02006,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02006,"percentile":0.80526}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-190","name":"Integer Overflow or Wraparound","description":"The product performs a calculation that can\n         produce an integer overflow or wraparound when the logic\n         assumes that the resulting value will always be larger than\n         the original value. This occurs when an integer value is\n         incremented to a value that is too large to store in the\n         associated representation. When this occurs, the value may\n         become a very small or negative number.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/190.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"alpine","product":"libjpeg-turbo","name":"libjpeg-turbo","label":"libjpeg-turbo","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/libjpeg-turbo","purlType":"apk","versions":[{"text":"< 2.0.2-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.2-r0","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libjpeg-turbo","name":"libjpeg-turbo","label":"libjpeg-turbo","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libjpeg-turbo","purlType":"deb","versions":[{"text":"< 1.3.0-0ubuntu2.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.4.2-0ubuntu3.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.5.2-0ubuntu5.18.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.3.0-0ubuntu2.1 | < 1.4.2-0ubuntu3.1 | < 1.5.2-0ubuntu5.18.04.1","eol":null,"hubHref":null},{"vendor":"libjpeg-turbo","product":"libjpeg-turbo","name":"libjpeg-turbo","label":"libjpeg-turbo","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.0.1","eol":null,"hubHref":"/vendor/libjpeg-turbo/libjpeg-turbo"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/libjpeg-turbo/libjpeg-turbo/issues/304","label":"github.com/libjpeg-turbo/libjpeg-turbo/issues/304","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://usn.ubuntu.com/4190-1/","label":"usn.ubuntu.com/4190-1/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2018-20330","label":"security.alpinelinux.org/vuln/CVE-2018-20330","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-20330","label":"ubuntu.com/security/CVE-2018-20330","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4190-1","label":"ubuntu.com/security/notices/USN-4190-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-20330","label":"www.cve.org/CVERecord?id=CVE-2018-20330","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:10952-1","USN-4190-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:10952-1","USN-4190-1"]},"timeline":[{"kind":"published","date":"2018-12-21T09:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T11:58:18.787Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":36,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T06:17:46.318Z","stale":false,"partial":false}}