CVE-2023-2804 json
A heap-based buffer overflow issue was discovered in libjpeg-turbo in h2v2_merged_upsample_internal() function of jdmrgext.c file.
published 2023-05-25 3 y ago modified 2026-06-17 4 mo ago also EUVD-2023-34257
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 68%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- libjpeg-turbo openSUSE Tumbleweed 8.3.2-77.1
opensuse advisories openSUSE-SU-2024:13552-1
- libjpeg-turbo Alpine 3.18 2.1.5.1-r3
- libjpeg-turbo Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 2.1.5.1-r4
alpine advisories ALPINE-CVE-2023-2804
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-2804 updated cvss 6.5
libjpeg-turbo: heap-buffer-overflow in h2v2_merged_upsample_internal() at /libjpeg-turbo/jdmrgext.c
-
Red Hat Enterprise Linux 6 libjpeg-turbo Red Hat Enterprise Linux 7 turbojpeg, libjpeg-turbo, libjpeg-turbo-utils Red Hat Enterprise Linux 8 turbojpeg, libjpeg-turbo, libjpeg-turbo-utils Red Hat Enterprise Linux 9 turbojpeg, libjpeg-turbo, libjpeg-turbo-utilsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 21 mo ago
Exploit prediction
1.20% chance of exploitation in the next 30 days, higher than 68% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/libjpeg-turbo/libjpeg-turbo/issues/675 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/libjpeg-turbo/libjpeg-turbo/issues/668#issuecomment-1492586118 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected products
- n/a libjpeg-turbo
Classification
References
-
github.com
/libjpeg-turbo/libjpeg-turbo/commit/9f756bc67a84d4566bf74a0c2432aa55da404021
patch
-
github.com
/libjpeg-turbo/libjpeg-turbo/issues/675
exploit, issue-tracking, patch
-
bugzilla.redhat.com
/show_bug.cgi?id=2208447
issue-tracking, patch
-
github.com
/libjpeg-turbo/libjpeg-turbo/issues/668#issuecomment-1492586118
exploit, issue-tracking, patch
-
access.redhat.com
/security/cve/CVE-2023-2804
third-party-advisory
- intel.com /content/www/us/en/security-center/advisory/intel-sa-01006.html
Sources
- CVE List CVE-2023-2804
- NVD CVE-2023-2804
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.