CVE-2023-2804

Public Exploit

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.

Categories

6.5
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.06%
Third-Party Advisory redhat.com
Affected: n/a libjpeg-turbo
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-2804?
CVE-2023-2804 has been scored as a medium severity vulnerability.
How to fix CVE-2023-2804?
To fix CVE-2023-2804, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-2804 being actively exploited in the wild?
It is possible that CVE-2023-2804 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-2804?
CVE-2023-2804 affects n/a libjpeg-turbo.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.