{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2023-2804",
        "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "assignerShortName": "redhat",
        "dateUpdated": "2024-08-02T06:33:05.771Z",
        "dateReserved": "2023-05-19T00:00:00",
        "datePublished": "2023-05-25T00:00:00"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
                "shortName": "redhat",
                "dateUpdated": "2024-02-13T19:05:59.636100"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "affected": [
                {
                    "vendor": "n/a",
                    "product": "libjpeg-turbo",
                    "versions": [
                        {
                            "version": "Fixed in libjpeg-turbo v3.0 (beta2)",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://github.com/libjpeg-turbo/libjpeg-turbo/issues/675"
                },
                {
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2208447"
                },
                {
                    "url": "https://access.redhat.com/security/cve/CVE-2023-2804"
                },
                {
                    "url": "https://github.com/libjpeg-turbo/libjpeg-turbo/commit/9f756bc67a84d4566bf74a0c2432aa55da404021"
                },
                {
                    "url": "https://github.com/libjpeg-turbo/libjpeg-turbo/issues/668#issuecomment-1492586118"
                },
                {
                    "url": "https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-01006.html"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "lang": "en",
                            "description": "CWE-122 - Heap-based Buffer Overflow",
                            "cweId": "CWE-122"
                        }
                    ]
                }
            ]
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T06:33:05.771Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://github.com/libjpeg-turbo/libjpeg-turbo/issues/675",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2208447",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://access.redhat.com/security/cve/CVE-2023-2804",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/libjpeg-turbo/libjpeg-turbo/commit/9f756bc67a84d4566bf74a0c2432aa55da404021",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/libjpeg-turbo/libjpeg-turbo/issues/668#issuecomment-1492586118",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-01006.html",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}