CONTENTUM.COMA specialist. A plan. A result.

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

More vulnerabilities in Libjpeg-turbo products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.