6.5
MEDIUM
CVE-2023-2804
Libjpeg-turbo JPEG Heap Buffer Overflow Vulnerability
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.

INFO

Published Date :

May 25, 2023, 10:15 p.m.

Last Modified :

Feb. 13, 2024, 7:15 p.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

2.8
Affected Products

The following products are affected by CVE-2023-2804 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Libjpeg-turbo libjpeg-turbo
References to Advisories, Solutions, and Tools

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-2804 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-2804 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Feb. 13, 2024

    Action Type Old Value New Value
    Added Reference Red Hat, Inc. https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-01006.html [No types assigned]
  • Reanalysis by [email protected]

    Aug. 17, 2023

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:libjpeg-turbo:libjpeg-turbo:*:*:*:*:*:*:*:* versions up to (excluding) 2.1.90 OR *cpe:2.3:a:libjpeg-turbo:libjpeg-turbo:2.1.90:*:*:*:*:*:*:*
  • Reanalysis by [email protected]

    Jun. 21, 2023

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:libjpeg-turbo:libjpeg-turbo:*:*:*:*:*:*:*:* OR *cpe:2.3:a:libjpeg-turbo:libjpeg-turbo:*:*:*:*:*:*:*:* versions up to (excluding) 2.1.90
  • Reanalysis by [email protected]

    Jun. 06, 2023

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:libjpeg-turbo:libjpeg-turbo:*:*:*:*:*:*:*:* versions up to (excluding) 2.1.91 OR *cpe:2.3:a:libjpeg-turbo:libjpeg-turbo:*:*:*:*:*:*:*:*
  • Initial Analysis by [email protected]

    Jun. 01, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
    Changed Reference Type https://access.redhat.com/security/cve/CVE-2023-2804 No Types Assigned https://access.redhat.com/security/cve/CVE-2023-2804 Third Party Advisory
    Changed Reference Type https://bugzilla.redhat.com/show_bug.cgi?id=2208447 No Types Assigned https://bugzilla.redhat.com/show_bug.cgi?id=2208447 Issue Tracking, Patch
    Changed Reference Type https://github.com/libjpeg-turbo/libjpeg-turbo/commit/9f756bc67a84d4566bf74a0c2432aa55da404021 No Types Assigned https://github.com/libjpeg-turbo/libjpeg-turbo/commit/9f756bc67a84d4566bf74a0c2432aa55da404021 Patch
    Changed Reference Type https://github.com/libjpeg-turbo/libjpeg-turbo/issues/668#issuecomment-1492586118 No Types Assigned https://github.com/libjpeg-turbo/libjpeg-turbo/issues/668#issuecomment-1492586118 Exploit, Issue Tracking, Patch
    Changed Reference Type https://github.com/libjpeg-turbo/libjpeg-turbo/issues/675 No Types Assigned https://github.com/libjpeg-turbo/libjpeg-turbo/issues/675 Exploit, Issue Tracking, Patch
    Added CWE NIST CWE-787
    Added CPE Configuration OR *cpe:2.3:a:libjpeg-turbo:libjpeg-turbo:*:*:*:*:*:*:*:* versions up to (excluding) 2.1.91
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-2804 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2023-2804 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.14 }} 0.02%

score

0.50196

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability