Vulnerabilities · 2023 · Libjpeg-turbo
CVE-2023-2804
Libjpeg-turbo vulnerability
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 products
Libjpeg-turbo. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Libjpeg-turbo runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugzilla.redhat.com/show_bug.cgi?id=2208447 · Patch
- github.com/libjpeg-turbo/libjpeg-turbo/commit/9f756bc67a84d4566bf74a0c2432aa55da404021 · Patch
- github.com/libjpeg-turbo/libjpeg-turbo/issues/668#issuecomment-1492586118 · Exploit
- github.com/libjpeg-turbo/libjpeg-turbo/issues/675 · Exploit
- access.redhat.com/security/cve/CVE-2023-2804 · Third Party Advisory
- www.intel.com/content/www/us/en/security-center/advisory/intel-sa-01006.html
- nvd.nist.gov/vuln/detail/CVE-2023-2804
- cve.org/CVERecord?id=CVE-2023-2804
More vulnerabilities in Libjpeg-turbo products
CVE-2021-46822CVE-2021-29390CVE-2021-20205CVE-2020-35538CVE-2020-17541CVE-2020-13790CVE-2019-13960CVE-2018-20330All 16
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.