libjpeg-turbo: heap-buffer-overflow in h2v2_merged_upsample_internal() at /libjpeg-turbo/jdmrgext.c
Published May 25, 2023
6.5
MEDIUMCVSS 3.1
EPSS 1.19%
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.
Affected products
- Vendor n/a Product Libjpeg-Turbo Defaultn/a
- Version Fixed in libjpeg-turbo v3.0 (beta2)StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | Libjpeg-Turbo | n/a |
|
- 2.1.90
No data.
Red Hat Enterprise Linux 6
libjpeg-turbo
Not affected
Red Hat Enterprise Linux 7
libjpeg-turbo
Not affected
Red Hat Enterprise Linux 8
libjpeg-turbo
Not affected
Red Hat Enterprise Linux 9
libjpeg-turbo
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | libjpeg-turbo | Not affected | n/a |
| Red Hat Enterprise Linux 7 | libjpeg-turbo | Not affected | n/a |
| Red Hat Enterprise Linux 8 | libjpeg-turbo | Not affected | n/a |
| Red Hat Enterprise Linux 9 | libjpeg-turbo | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This CVE does not affect libjpeg-turbo v2.1.x and prior. Red Hat Enterprise Linux ships libjpeg-turbo v2.0.90 and prior. Vulnerable code is not present in our code-base. Hence, it's not affected.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
PoCAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed Jan 16, 2025 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 3, 2026.
Score over time
2023–2026- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (10 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 1.19% (0.01190) | 66.88th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.20% (0.01200) | 64.05th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.77% (0.00773) | 71.86th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.24% (0.00235) | 62.43th | v3 (v2023.03.01) |
| Jun 26, 2024 | 0.12% (0.00118) | 46.27th | v3 (v2023.03.01) |
| May 31, 2024 | 0.10% (0.00098) | 40.92th | v3 (v2023.03.01) |
| Apr 24, 2024 | 0.07% (0.00067) | 28.25th | v3 (v2023.03.01) |
| Feb 14, 2024 | 0.06% (0.00056) | 20.71th | v3 (v2023.03.01) |
| Jun 2, 2023 | 0.05% (0.00052) | 18.03th | v3 (v2023.03.01) |
| May 26, 2023 | 0.06% (0.00064) | 26.08th | v3 (v2023.03.01) |
References (8)
- https://access.redhat.com/security/cve/CVE-2023-2804 Third Party AdvisoryVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2208447 Issue TrackingPatch
- https://github.com/libjpeg-turbo/libjpeg-turbo/commit/9f756bc67a84d4566bf74a0c2432aa55da404021 Patch
- https://github.com/libjpeg-turbo/libjpeg-turbo/issues/668#issuecomment-1492586118 ExploitIssue TrackingPatch
- https://github.com/libjpeg-turbo/libjpeg-turbo/issues/675 ExploitIssue TrackingPatch
- https://nvd.nist.gov/vuln/detail/CVE-2023-2804
- https://www.cve.org/CVERecord?id=CVE-2023-2804
- https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-01006.html
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2023-2804 | Third Party AdvisoryVendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2208447 | Issue TrackingPatch | |
| https://github.com/libjpeg-turbo/libjpeg-turbo/commit/9f756bc67a84d4566bf74a0c2432aa55da404021 | Patch | |
| https://github.com/libjpeg-turbo/libjpeg-turbo/issues/668#issuecomment-1492586118 | ExploitIssue TrackingPatch | |
| https://github.com/libjpeg-turbo/libjpeg-turbo/issues/675 | ExploitIssue TrackingPatch | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-2804 | ||
| https://www.cve.org/CVERecord?id=CVE-2023-2804 | ||
| https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-01006.html |
Change history (0)
No recorded changes yet.