CVE-2023-2804Heap-based Buffer Overflow in Libjpeg-turbo

Severity
6.5MEDIUMNVD
EPSS
0.1%
top 76.41%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMay 25
Latest updateFeb 13

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 overf

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HExploitability: 2.8 | Impact: 3.6

Affected Packages5 packages

Alpinelibjpeg-turbo/libjpeg-turbo< 2.1.5.1-r3+5
CVEListV5libjpeg-turbo/libjpeg-turboFixed in libjpeg-turbo v3.0 (beta2)

Patches

🔴Vulnerability Details

2
GHSA
GHSA-jv36-3qpq-7g23: A heap-based buffer overflow issue was discovered in libjpeg-turbo in h2v2_merged_upsample_internal() function of jdmrgext2023-05-26
OSV
CVE-2023-2804: A heap-based buffer overflow issue was discovered in libjpeg-turbo in h2v2_merged_upsample_internal() function of jdmrgext2023-05-25

📋Vendor Advisories

3
Microsoft
Red Hat, Inc. CVE-2023-2804: Heap Based Overflow libjpeg-turbo2026-02-10
Red Hat
libjpeg-turbo: heap-buffer-overflow in h2v2_merged_upsample_internal() at /libjpeg-turbo/jdmrgext.c2023-03-26
Debian
CVE-2023-2804: libjpeg-turbo - A heap-based buffer overflow issue was discovered in libjpeg-turbo in h2v2_merge...2023

🕵️Threat Intelligence

4
Sophos
February’s Patch Tuesday assumes battle stations2026-02-13
Bleepingcomputer
Microsoft February 2026 Patch Tuesday fixes 6 zero-days, 58 flaws2026-02-10
Tenable
February 2026 Microsoft Patch Tuesday | Tenable®2026-02-10
Sophos
February’s Patch Tuesday assumes battle stations