{"schemaVersion":4,"id":"CVE-2023-2804","aliases":["ALPINE-CVE-2023-2804","CGA-fxh2-pv42-p5xg","CGA-mj77-qwpv-r8m6","openSUSE-SU-2024:13552-1"],"status":"published","duplicateOf":null,"title":null,"description":"A heap-based buffer overflow issue was discovered in libjpeg-turbo in h2v2_merged_upsample_internal() function of jdmrgext.c file. The vulnerability can only be exploited with 12-bit data precision for which the range of the sample data type exceeds the valid sample range, hence, an attacker could craft a 12-bit lossless JPEG image that contains out-of-range 12-bit samples. An application attempting to decompress such image using merged upsampling would lead to segmentation fault or buffer overflows, causing an application to crash.","dates":{"published":"2023-05-25T00:00:00.000Z","modified":"2025-01-16T15:17:27.071Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.012,"percentile":0.69186,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.012},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0119,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01347,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01347,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01347,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01347,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01347,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01347,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.012,"percentile":0.69186}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01347,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01347,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01347,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01347,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01347,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01347,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.012,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.012,"percentile":0.69186}]},"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":[{"id":"GITHUB_LIBJPEG-TURBO_LIBJPEG-TURBO","name":"Libjpeg Turbo","source":"github","url":"https://github.com/libjpeg-turbo/libjpeg-turbo/issues/167","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-122","name":"Heap-based Buffer Overflow","description":"The product writes past the end of a buffer that was allocated on the heap.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/122.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.1.5.1-r3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.1.5.1-r3","endInclusive":false}},{"text":"< 2.1.5.1-r4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.1.5.1-r4","endInclusive":false}}],"versionsText":"< 2.1.5.1-r3 | < 2.1.5.1-r4","eol":null,"hubHref":null},{"vendor":"chainguard","product":"libjpeg-turbo","name":"libjpeg-turbo","label":"libjpeg-turbo","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/libjpeg-turbo","purlType":"apk","versions":[{"text":"< 2.1.91-r3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.1.91-r3","endInclusive":false}}],"versionsText":"< 2.1.91-r3","eol":null,"hubHref":null},{"vendor":"wolfi","product":"libjpeg-turbo","name":"libjpeg-turbo","label":"libjpeg-turbo","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/libjpeg-turbo","purlType":"apk","versions":[{"text":"< 2.1.91-r3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.1.91-r3","endInclusive":false}}],"versionsText":"< 2.1.91-r3","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.1.90","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"2.1.90"}}],"versionsText":"2.1.90","eol":null,"hubHref":"/vendor/libjpeg-turbo/libjpeg-turbo"},{"vendor":"opensuse","product":"libjpeg-turbo&distro=openSUSE Tumbleweed","name":"libjpeg-turbo","label":"libjpeg-turbo&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/libjpeg-turbo&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 8.3.2-77.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"8.3.2-77.1","endInclusive":false}}],"versionsText":"< 8.3.2-77.1","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/libjpeg-turbo/libjpeg-turbo/issues/675","label":"github.com/libjpeg-turbo/libjpeg-turbo/issues/675","hostname":"github.com","tags":["REPORT","Exploit","Issue Tracking","Patch"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2208447","label":"bugzilla.redhat.com/show_bug.cgi?id=2208447","hostname":"bugzilla.redhat.com","tags":["REPORT","Issue Tracking","Patch"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-2804","label":"access.redhat.com/security/cve/CVE-2023-2804","hostname":"access.redhat.com","tags":["WEB","Third Party Advisory"]},{"url":"https://github.com/libjpeg-turbo/libjpeg-turbo/commit/9f756bc67a84d4566bf74a0c2432aa55da404021","label":"github.com/libjpeg-turbo/libjpeg-turbo/commit/9f756bc67a84d4566bf74a0c2432aa55da404021","hostname":"github.com","tags":["FIX","Patch"]},{"url":"https://github.com/libjpeg-turbo/libjpeg-turbo/issues/668#issuecomment-1492586118","label":"github.com/libjpeg-turbo/libjpeg-turbo/issues/668","hostname":"github.com","tags":["REPORT","Exploit","Issue Tracking","Patch"]},{"url":"https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-01006.html","label":"www.intel.com/content/www/us/en/security-center/advisory/intel-sa-01006.html","hostname":"www.intel.com","tags":["Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2023-2804","label":"security.alpinelinux.org/vuln/CVE-2023-2804","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2804.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2804.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2804","label":"nvd.nist.gov/vuln/detail/CVE-2023-2804","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2023-2804","label":"www.suse.com/security/cve/CVE-2023-2804","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":["CVE-2023-31813"],"related":["CGA-34C5-QWRJ-FQ2C","CGA-QPPR-2J2C-M6QX"]},"timeline":[{"kind":"published","date":"2023-05-25T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-01-16T15:17:27.071Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,1,1,65],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.012,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2025-01-16T15:17:27.071Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1","headline":true},{"type":"cvss","source":"osv_alpine","date":"2025-01-16T15:17:27.071Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"cvss","source":"osv_wolfi","date":"2025-01-16T15:17:27.071Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"cvss","source":"osv_chainguard","date":"2025-01-16T15:17:27.071Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2025-01-16T15:17:27.071Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2025-01-16T15:15:55.152Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"},{"type":"exploit","source":"github","date":null,"status":"valid","statusDate":null,"statusSource":null,"disputes":[],"maturity":"poc","verified":false}],"epss":{"value":0.012,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T03:02:07.274Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T03:02:07.824Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T03:02:08.009Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T03:00:58.365Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T03:02:05.166Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T03:02:04.195Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T03:46:05.253Z","stale":false,"partial":false}}