CVEfocus › CVE database › CVE-2023-2804

CVE-2023-2804

CVSS 6.5 MediumEPSS 1.2% (higher than 69% of CVEs)Published 2023-05-25Updated 2025-01-16Assigner: redhat

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.

CWE-122

What to do

Fixed builds are available from Alpine, Microsoft: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

8Fixed
6Fix pending
25Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04libjpeg-turboNot affected
vulnerable_code_not_present
Ubuntu 22.04libjpeg6bNot affected
vulnerable_code_not_present
Ubuntu 22.04libjpeg9Not affected
vulnerable_code_not_present
Ubuntu 20.04libjpeg-turboNot affected
vulnerable_code_not_present
Ubuntu 20.04libjpeg6bNot affected
vulnerable_code_not_present
Ubuntu 20.04libjpeg9Not affected
vulnerable_code_not_present
Ubuntu 18.04libjpeg-turboFix pending
Ubuntu 18.04libjpeg6bFix pending
Ubuntu 18.04libjpeg9Fix pending
Ubuntu 16.04libjpeg-turboFix pending
Ubuntu 16.04libjpeg6bFix pending
Ubuntu 16.04libjpeg9Fix pending
Red Hat Enterprise Linux 9libjpeg-turboNot affected
Red Hat Enterprise Linux 9libjpeg-turbo-develNot affected
Red Hat Enterprise Linux 9libjpeg-turbo-utilsNot affected
Red Hat Enterprise Linux 9turbojpegNot affected
Red Hat Enterprise Linux 9turbojpeg-develNot affected
Red Hat Enterprise Linux 8libjpeg-turboNot affected
Red Hat Enterprise Linux 8libjpeg-turbo-develNot affected
Red Hat Enterprise Linux 8libjpeg-turbo-utilsNot affected
Red Hat Enterprise Linux 8turbojpegNot affected
Red Hat Enterprise Linux 8turbojpeg-develNot affected
Red Hat Enterprise Linux 7libjpeg-turboNot affected
Red Hat Enterprise Linux 7libjpeg-turbo-develNot affected
Red Hat Enterprise Linux 7libjpeg-turbo-staticNot affected
Red Hat Enterprise Linux 7libjpeg-turbo-utilsNot affected
Red Hat Enterprise Linux 7turbojpegNot affected
Red Hat Enterprise Linux 7turbojpeg-develNot affected
Red Hat Enterprise Linux 6libjpeg-turboNot affected
Red Hat Enterprise Linux 6libjpeg-turbo-develNot affected
Red Hat Enterprise Linux 6libjpeg-turbo-staticNot affected
Windows Server, version 23H2windowsFixed10.0.25398.2149 KB5075897MSRC-2026-Feb
Alpine Linux 3.24libjpeg-turboFixed2.1.5.1-r4ALPINE-CVE-2023-2804
Alpine Linux 3.23libjpeg-turboFixed2.1.5.1-r4ALPINE-CVE-2023-2804
Alpine Linux 3.22libjpeg-turboFixed2.1.5.1-r4ALPINE-CVE-2023-2804
Alpine Linux 3.21libjpeg-turboFixed2.1.5.1-r4ALPINE-CVE-2023-2804
Alpine Linux 3.20libjpeg-turboFixed2.1.5.1-r4ALPINE-CVE-2023-2804
Alpine Linux 3.19libjpeg-turboFixed2.1.5.1-r4ALPINE-CVE-2023-2804
Alpine Linux 3.18libjpeg-turboFixed2.1.5.1-r3ALPINE-CVE-2023-2804

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.