{"id":"CVE-2023-2804","aliases":["ALPINE-CVE-2023-2804","BELL-CVE-2023-2804","EUVD-2023-34257","GHSA-jv36-3qpq-7g23","openSUSE-SU-2024:13552-1"],"status":"published","title":"A heap-based buffer overflow issue was discovered in libjpeg-turbo in...","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.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.012,"percentile":0.68382,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-122","CWE-787"],"published":"2023-05-25T00:00:00Z","modified":"2026-10-28T10:38:43Z","fixes":[{"ecosystem":"Alpine:v3.18","package":"libjpeg-turbo","fixed_in":["2.1.5.1-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"libjpeg-turbo","fixed_in":["2.1.5.1-r4"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"libjpeg-turbo","fixed_in":["2.1.5.1-r4"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"libjpeg-turbo","fixed_in":["2.1.5.1-r4"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"libjpeg-turbo","fixed_in":["2.1.5.1-r4"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"libjpeg-turbo","fixed_in":["2.1.5.1-r4"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"libjpeg-turbo","fixed_in":["2.1.5.1-r4"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"libjpeg-turbo","fixed_in":["8.3.2-77.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.18","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.5.1-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.5.1-r4"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.5.1-r4"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.5.1-r4"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.5.1-r4"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.5.1-r4"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.5.1-r4"}]}]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"libjpeg-turbo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.3.2-77.1"}]}]}],"products":[{"vendor":"libjpeg-turbo","product":"libjpeg-turbo"},{"vendor":"tenable","product":"libjpeg-turbo"}],"references":[{"url":"https://github.com/libjpeg-turbo/libjpeg-turbo/issues/675","tags":["x_transferred","Exploit","Issue Tracking","Patch","report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2208447","tags":["x_transferred","Issue Tracking","Patch","report"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-2804","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://github.com/libjpeg-turbo/libjpeg-turbo/commit/9f756bc67a84d4566bf74a0c2432aa55da404021","tags":["x_transferred","Patch","fix"]},{"url":"https://github.com/libjpeg-turbo/libjpeg-turbo/issues/668#issuecomment-1492586118","tags":["x_transferred","Exploit","Issue Tracking","Patch","report"]},{"url":"https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-01006.html","tags":["x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2804","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-jv36-3qpq-7g23"},{"url":"https://security.alpinelinux.org/vuln/CVE-2023-2804","tags":["advisory"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2023-2804","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2804.json","tags":["advisory"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2023-2804","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2023-2804","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.","status":"published","published":"2023-05-25T00:00:00Z","modified":"2025-01-16T15:17:27.071Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"adp"}],"cwes":["CWE-122"],"updated_at":"2026-11-02T14:35:23.645864Z"}],"euvd":[{"id":"EUVD-2023-34257","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.","status":"published","published":"2023-05-25T00:00:00Z","modified":"2025-01-16T15:17:27Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-03T00:04:18.582094Z"}],"ghsa":[{"id":"GHSA-jv36-3qpq-7g23","title":"A heap-based buffer overflow issue was discovered in libjpeg-turbo in...","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.","status":"published","published":"2023-05-26T00:30:20Z","modified":"2024-02-22T05:08:22Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-122","CWE-787"],"updated_at":"2026-11-02T14:55:37.87337Z"}],"nvd":[{"id":"CVE-2023-2804","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.","status":"published","published":"2023-05-25T22:15:09.443Z","modified":"2026-06-17T05:53:28.837Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"secondary"}],"cwes":["CWE-122","CWE-787"],"updated_at":"2026-11-02T14:08:03.200773Z"}],"osv":[{"id":"ALPINE-CVE-2023-2804","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.","status":"published","published":"2023-05-25T22:15:09.443Z","modified":"2026-10-26T17:17:58.617122467Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:27:49.202584Z"},{"id":"BELL-CVE-2023-2804","title":"CVE-2023-2804 does not affect BellSoft software","status":"withdrawn","published":"2023-08-31T12:15:57.51721Z","modified":"2026-01-26T09:49:25.965362Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:28:17.742221Z"},{"id":"CVE-2023-2804","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.","status":"published","published":"2023-05-25T00:00:00Z","modified":"2026-10-28T10:38:43.919693285Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-122"],"updated_at":"2026-11-02T15:44:31.135751Z"},{"id":"openSUSE-SU-2024:13552-1","title":"libjpeg-turbo-3.0.1-77.1 on GA media","description":"These are all security issues fixed in the libjpeg-turbo-3.0.1-77.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T04:20:18.254579Z","updated_at":"2026-11-02T16:58:36.327643Z"}]}}
