# CVE-2023-2804

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-05-25 · Modified: 2025-01-16
- Aliases: ALPINE-CVE-2023-2804, CGA-fxh2-pv42-p5xg, CGA-mj77-qwpv-r8m6, openSUSE-SU-2024:13552-1
- Record: https://cvemate.com/vulnerability/CVE-2023-2804 · JSON: https://cvemate.com/vulnerability/CVE-2023-2804/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 1.2%, percentile 69.186%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine libjpeg-turbo (Alpine Linux): \< 2.1.5.1-r3 \| \< 2.1.5.1-r4
- chainguard libjpeg-turbo (Chainguard): \< 2.1.91-r3
- wolfi libjpeg-turbo (Wolfi): \< 2.1.91-r3
- libjpeg-turbo libjpeg-turbo: 2.1.90
- opensuse libjpeg-turbo&distro=openSUSE Tumbleweed (openSUSE): \< 8.3.2-77.1

## References

- <https://github.com/libjpeg-turbo/libjpeg-turbo/issues/675>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2208447>
- <https://access.redhat.com/security/cve/CVE-2023-2804>
- <https://github.com/libjpeg-turbo/libjpeg-turbo/commit/9f756bc67a84d4566bf74a0c2432aa55da404021>
- <https://github.com/libjpeg-turbo/libjpeg-turbo/issues/668#issuecomment-1492586118>
- <https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-01006.html>
- <https://security.alpinelinux.org/vuln/CVE-2023-2804>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2804.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-2804>
- <https://www.suse.com/security/cve/CVE-2023-2804>

---

Data as of 2026-12-05T03:46:05.253Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
