libjpeg-turbo CVE Vulnerabilities & Metrics

Focus on libjpeg-turbo vulnerabilities and metrics.

Last updated: 08 Mar 2025, 23:25 UTC

About libjpeg-turbo Security Exposure

This page consolidates all known Common Vulnerabilities and Exposures (CVEs) associated with libjpeg-turbo. We track both calendar-based metrics (using fixed periods) and rolling metrics (using gliding windows) to give you a comprehensive view of security trends and risk evolution. Use these insights to assess risk and plan your patching strategy.

For a broader perspective on cybersecurity threats, explore the comprehensive list of CVEs by vendor and product. Stay updated on critical vulnerabilities affecting major software and hardware providers.

Global CVE Overview

Total libjpeg-turbo CVEs: 15
Earliest CVE date: 19 Nov 2013, 04:50 UTC
Latest CVE date: 22 Aug 2023, 19:16 UTC

Latest CVE reference: CVE-2021-29390

Rolling Stats

30-day Count (Rolling): 0
365-day Count (Rolling): 0

Calendar-based Variation

Calendar-based Variation compares a fixed calendar period (e.g., this month versus the same month last year), while Rolling Growth Rate uses a continuous window (e.g., last 30 days versus the previous 30 days) to capture trends independent of calendar boundaries.

Variations & Growth

Month Variation (Calendar): 0%
Year Variation (Calendar): -100.0%

Month Growth Rate (30-day Rolling): 0.0%
Year Growth Rate (365-day Rolling): -100.0%

Monthly CVE Trends (current vs previous Year)

Annual CVE Trends (Last 20 Years)

Critical libjpeg-turbo CVEs (CVSS ≥ 9) Over 20 Years

CVSS Stats

Average CVSS: 4.1

Max CVSS: 6.8

Critical CVEs (≥9): 0

CVSS Range vs. Count

Range Count
0.0-3.9 3
4.0-6.9 13
7.0-8.9 0
9.0-10.0 0

CVSS Distribution Chart

Top 5 Highest CVSS libjpeg-turbo CVEs

These are the five CVEs with the highest CVSS scores for libjpeg-turbo, sorted by severity first and recency.

All CVEs for libjpeg-turbo

CVE-2021-29390 libjpeg-turbo vulnerability CVSS: 0 22 Aug 2023, 19:16 UTC

libjpeg-turbo version 2.0.90 has a heap-based buffer over-read (2 bytes) in decompress_smooth_data in jdcoefct.c.

CVE-2023-2804 libjpeg-turbo vulnerability CVSS: 0 25 May 2023, 22:15 UTC

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.

CVE-2020-35538 libjpeg-turbo vulnerability CVSS: 0 31 Aug 2022, 16:15 UTC

A crafted input file could cause a null pointer dereference in jcopy_sample_rows() when processed by libjpeg-turbo.

CVE-2021-46822 libjpeg-turbo vulnerability CVSS: 4.3 18 Jun 2022, 16:15 UTC

The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit binary PPM file into a grayscale buffer and loading a 16-bit binary PGM file into an RGB buffer. This is related to a heap-based buffer overflow in the get_word_rgb_row function in rdppm.c.

CVE-2020-17541 libjpeg-turbo vulnerability CVSS: 6.8 01 Jun 2021, 15:15 UTC

Libjpeg-turbo all version have a stack-based buffer overflow in the "transform" component. A remote attacker can send a malformed jpeg file to the service and cause arbitrary code execution or denial of service of the target service.

CVE-2021-20205 libjpeg-turbo vulnerability CVSS: 4.3 10 Mar 2021, 17:15 UTC

Libjpeg-turbo versions 2.0.91 and 2.0.90 is vulnerable to a denial of service vulnerability caused by a divide by zero when processing a crafted GIF image.

CVE-2020-13790 libjpeg-turbo vulnerability CVSS: 5.8 03 Jun 2020, 19:15 UTC

libjpeg-turbo 2.0.4, and mozjpeg 4.0.0, has a heap-based buffer over-read in get_rgb_row() in rdppm.c via a malformed PPM input file.

CVE-2019-13960 libjpeg-turbo vulnerability CVSS: 4.3 18 Jul 2019, 19:15 UTC

In libjpeg-turbo 2.0.2, a large amount of memory can be used during processing of an invalid progressive JPEG image containing incorrect width and height values in the image header. NOTE: the vendor's expectation, for use cases in which this memory usage would be a denial of service, is that the application should interpret libjpeg warnings as fatal errors (aborting decompression) and/or set limits on resource consumption or image sizes

CVE-2018-14498 libjpeg-turbo vulnerability CVSS: 4.3 07 Mar 2019, 23:29 UTC

get_8bit_row in rdbmp.c in libjpeg-turbo through 1.5.90 and MozJPEG through 3.3.1 allows attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted 8-bit BMP in which one or more of the color indices is out of range for the number of palette entries.

CVE-2018-20330 libjpeg-turbo vulnerability CVSS: 6.8 21 Dec 2018, 09:29 UTC

The tjLoadImage function in libjpeg-turbo 2.0.1 has an integer overflow with a resultant heap-based buffer overflow via a BMP image because multiplication of pitch and height is mishandled, as demonstrated by tjbench.

CVE-2018-19664 libjpeg-turbo vulnerability CVSS: 4.3 29 Nov 2018, 08:29 UTC

libjpeg-turbo 2.0.1 has a heap-based buffer over-read in the put_pixel_rows function in wrbmp.c, as demonstrated by djpeg.

CVE-2018-1152 libjpeg-turbo vulnerability CVSS: 4.3 18 Jun 2018, 14:29 UTC

libjpeg-turbo 1.5.90 is vulnerable to a denial of service vulnerability caused by a divide by zero when processing a crafted BMP image.

CVE-2017-15232 libjpeg-turbo vulnerability CVSS: 4.3 11 Oct 2017, 03:29 UTC

libjpeg-turbo 1.5.2 has a NULL Pointer Dereference in jdpostct.c and jquant1.c via a crafted JPEG file.

CVE-2014-9092 libjpeg-turbo vulnerability CVSS: 4.3 10 Oct 2017, 13:29 UTC

libjpeg-turbo before 1.3.1 allows remote attackers to cause a denial of service (crash) via a crafted JPEG file, related to the Exif marker.

CVE-2016-3616 libjpeg-turbo vulnerability CVSS: 6.8 13 Feb 2017, 18:59 UTC

The cjpeg utility in libjpeg allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) or execute arbitrary code via a crafted file.

CVE-2013-6629 libjpeg-turbo vulnerability CVSS: 5.0 19 Nov 2013, 04:50 UTC

The get_sos function in jdmarker.c in (1) libjpeg 6b and (2) libjpeg-turbo through 1.3.0, as used in Google Chrome before 31.0.1650.48, Ghostscript, and other products, does not check for certain duplications of component data during the reading of segments that follow Start Of Scan (SOS) JPEG markers, which allows remote attackers to obtain sensitive information from uninitialized memory locations via a crafted JPEG image.