libraw CVE Vulnerabilities & Metrics

Focus on libraw vulnerabilities and metrics.

Last updated: 08 Mar 2025, 23:25 UTC

About libraw Security Exposure

This page consolidates all known Common Vulnerabilities and Exposures (CVEs) associated with libraw. 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 libraw CVEs: 50
Earliest CVE date: 14 Aug 2013, 15:55 UTC
Latest CVE date: 22 Aug 2023, 19:16 UTC

Latest CVE reference: CVE-2020-22628

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 libraw CVEs (CVSS ≥ 9) Over 20 Years

CVSS Stats

Average CVSS: 4.97

Max CVSS: 7.8

Critical CVEs (≥9): 0

CVSS Range vs. Count

Range Count
0.0-3.9 10
4.0-6.9 31
7.0-8.9 12
9.0-10.0 0

CVSS Distribution Chart

Top 5 Highest CVSS libraw CVEs

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

All CVEs for libraw

CVE-2020-22628 libraw vulnerability CVSS: 0 22 Aug 2023, 19:16 UTC

Buffer Overflow vulnerability in LibRaw::stretch() function in libraw\src\postprocessing\aspect_ratio.cpp.

CVE-2023-1729 libraw vulnerability CVSS: 0 15 May 2023, 22:15 UTC

A flaw was found in LibRaw. A heap-buffer-overflow in raw2image_ex() caused by a maliciously crafted file may lead to an application crash.

CVE-2021-32142 libraw vulnerability CVSS: 0 17 Feb 2023, 18:15 UTC

Buffer Overflow vulnerability in LibRaw linux/unix v0.20.0 allows attacker to escalate privileges via the LibRaw_buffer_datastream::gets(char*, int) in /src/libraw/src/libraw_datastream.cpp.

CVE-2020-35535 libraw vulnerability CVSS: 0 01 Sep 2022, 18:15 UTC

In LibRaw, there is an out-of-bounds read vulnerability within the "LibRaw::parseSonySRF()" function (libraw\src\metadata\sony.cpp) when processing srf files.

CVE-2020-35534 libraw vulnerability CVSS: 0 01 Sep 2022, 18:15 UTC

In LibRaw, there is a memory corruption vulnerability within the "crxFreeSubbandData()" function (libraw\src\decoders\crx.cpp) when processing cr3 files.

CVE-2020-35533 libraw vulnerability CVSS: 0 01 Sep 2022, 18:15 UTC

In LibRaw, an out-of-bounds read vulnerability exists within the "LibRaw::adobe_copy_pixel()" function (libraw\src\decoders\dng.cpp) when reading data from the image file.

CVE-2020-35532 libraw vulnerability CVSS: 0 01 Sep 2022, 18:15 UTC

In LibRaw, an out-of-bounds read vulnerability exists within the "simple_decode_row()" function (libraw\src\x3f\x3f_utils_patched.cpp) which can be triggered via an image with a large row_stride field.

CVE-2020-35531 libraw vulnerability CVSS: 0 01 Sep 2022, 18:15 UTC

In LibRaw, an out-of-bounds read vulnerability exists within the get_huffman_diff() function (libraw\src\x3f\x3f_utils_patched.cpp) when reading data from an image file.

CVE-2020-35530 libraw vulnerability CVSS: 0 01 Sep 2022, 18:15 UTC

In LibRaw, there is an out-of-bounds write vulnerability within the "new_node()" function (libraw\src\x3f\x3f_utils_patched.cpp) that can be triggered via a crafted X3F file.

CVE-2020-24870 libraw vulnerability CVSS: 6.8 02 Jun 2021, 16:15 UTC

Libraw before 0.20.1 has a stack buffer overflow via LibRaw::identify_process_dng_fields in identify.cpp.

CVE-2020-24890 libraw vulnerability CVSS: 2.6 16 Sep 2020, 15:15 UTC

libraw 20.0 has a null pointer dereference vulnerability in parse_tiff_ifd in src/metadata/tiff.cpp, which may result in context-dependent arbitrary code execution. Note: this vulnerability occurs only if you compile the software in a certain way

CVE-2020-24889 libraw vulnerability CVSS: 5.1 16 Sep 2020, 15:15 UTC

A buffer overflow vulnerability in LibRaw version < 20.0 LibRaw::GetNormalizedModel in src/metadata/normalize_model.cpp may lead to context-dependent arbitrary code execution.

CVE-2020-15503 libraw vulnerability CVSS: 5.0 02 Jul 2020, 14:15 UTC

LibRaw before 0.20-RC1 lacks a thumbnail size range check. This affects decoders/unpack_thumb.cpp, postprocessing/mem_image.cpp, and utils/thumb_utils.cpp. For example, malloc(sizeof(libraw_processed_image_t)+T.tlength) occurs without validating T.tlength.

CVE-2020-15365 libraw vulnerability CVSS: 4.3 28 Jun 2020, 13:15 UTC

LibRaw before 0.20-Beta3 has an out-of-bounds write in parse_exif() in metadata\exif_gps.cpp via an unrecognized AtomName and a zero value of tiff_nifds.

CVE-2015-8367 libraw vulnerability CVSS: 7.5 14 Jan 2020, 16:15 UTC

The phase_one_correct function in Libraw before 0.17.1 allows attackers to cause memory errors and possibly execute arbitrary code, related to memory object initialization.

CVE-2015-8366 libraw vulnerability CVSS: 7.5 14 Jan 2020, 16:15 UTC

Array index error in smal_decode_segment function in LibRaw before 0.17.1 allows context-dependent attackers to cause memory errors and possibly execute arbitrary code via vectors related to indexes.

CVE-2018-5819 libraw vulnerability CVSS: 7.8 20 Feb 2019, 18:29 UTC

An error within the "parse_sinar_ia()" function (internal/dcraw_common.cpp) within LibRaw versions prior to 0.19.1 can be exploited to exhaust available CPU resources.

CVE-2018-5818 libraw vulnerability CVSS: 5.0 20 Feb 2019, 18:29 UTC

An error within the "parse_rollei()" function (internal/dcraw_common.cpp) within LibRaw versions prior to 0.19.1 can be exploited to trigger an infinite loop.

CVE-2018-5817 libraw vulnerability CVSS: 5.0 20 Feb 2019, 18:29 UTC

A type confusion error within the "unpacked_load_raw()" function within LibRaw versions prior to 0.19.1 (internal/dcraw_common.cpp) can be exploited to trigger an infinite loop.

CVE-2018-20365 libraw vulnerability CVSS: 4.3 22 Dec 2018, 17:29 UTC

LibRaw::raw2image() in libraw_cxx.cpp has a heap-based buffer overflow.

CVE-2018-20364 libraw vulnerability CVSS: 4.3 22 Dec 2018, 17:29 UTC

LibRaw::copy_bayer in libraw_cxx.cpp in LibRaw 0.19.1 has a NULL pointer dereference.

CVE-2018-20363 libraw vulnerability CVSS: 4.3 22 Dec 2018, 17:29 UTC

LibRaw::raw2image in libraw_cxx.cpp in LibRaw 0.19.1 has a NULL pointer dereference.

CVE-2018-20337 libraw vulnerability CVSS: 6.8 21 Dec 2018, 09:29 UTC

There is a stack-based buffer overflow in the parse_makernote function of dcraw_common.cpp in LibRaw 0.19.1. Crafted input will lead to a denial of service or possibly unspecified other impact.

CVE-2018-5816 libraw vulnerability CVSS: 7.1 07 Dec 2018, 22:29 UTC

An integer overflow error within the "identify()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.12 can be exploited to trigger a division by zero via specially crafted NOKIARAW file (Note: This vulnerability is caused due to an incomplete fix of CVE-2018-5804).

CVE-2018-5815 libraw vulnerability CVSS: 7.1 07 Dec 2018, 22:29 UTC

An integer overflow error within the "parse_qt()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.12 can be exploited to trigger an infinite loop via a specially crafted Apple QuickTime file.

CVE-2018-5813 libraw vulnerability CVSS: 7.1 07 Dec 2018, 22:29 UTC

An error within the "parse_minolta()" function (dcraw/dcraw.c) in LibRaw versions prior to 0.18.11 can be exploited to trigger an infinite loop via a specially crafted file.

CVE-2018-5812 libraw vulnerability CVSS: 4.3 07 Dec 2018, 22:29 UTC

An error within the "nikon_coolscan_load_raw()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.9 can be exploited to trigger a NULL pointer dereference.

CVE-2018-5811 libraw vulnerability CVSS: 4.3 07 Dec 2018, 22:29 UTC

An error within the "nikon_coolscan_load_raw()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.9 can be exploited to cause an out-of-bounds read memory access and subsequently cause a crash.

CVE-2018-5810 libraw vulnerability CVSS: 6.8 07 Dec 2018, 22:29 UTC

An error within the "rollei_load_raw()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.9 can be exploited to cause a heap-based buffer overflow and subsequently cause a crash.

CVE-2018-5809 libraw vulnerability CVSS: 6.8 07 Dec 2018, 22:29 UTC

An error within the "LibRaw::parse_exif()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.9 can be exploited to cause a stack-based buffer overflow and subsequently execute arbitrary code.

CVE-2018-5808 libraw vulnerability CVSS: 6.8 07 Dec 2018, 22:29 UTC

An error within the "find_green()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.9 can be exploited to cause a stack-based buffer overflow and subsequently execute arbitrary code.

CVE-2018-5807 libraw vulnerability CVSS: 6.8 07 Dec 2018, 22:29 UTC

An error within the "samsung_load_raw()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.9 can be exploited to cause an out-of-bounds read memory access and subsequently cause a crash.

CVE-2018-5806 libraw vulnerability CVSS: 4.3 07 Dec 2018, 22:29 UTC

An error within the "leaf_hdr_load_raw()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.8 can be exploited to trigger a NULL pointer dereference.

CVE-2018-5805 libraw vulnerability CVSS: 6.8 07 Dec 2018, 22:29 UTC

A boundary error within the "quicktake_100_load_raw()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.8 can be exploited to cause a stack-based buffer overflow and subsequently cause a crash.

CVE-2018-5804 libraw vulnerability CVSS: 4.3 07 Dec 2018, 22:29 UTC

A type confusion error within the "identify()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.8 can be exploited to trigger a division by zero.

CVE-2018-5802 libraw vulnerability CVSS: 6.8 07 Dec 2018, 22:29 UTC

An error within the "kodak_radc_load_raw()" function (internal/dcraw_common.cpp) related to the "buf" variable in LibRaw versions prior to 0.18.7 can be exploited to cause an out-of-bounds read memory access and subsequently cause a crash.

CVE-2018-5801 libraw vulnerability CVSS: 4.3 07 Dec 2018, 22:29 UTC

An error within the "LibRaw::unpack()" function (src/libraw_cxx.cpp) in LibRaw versions prior to 0.18.7 can be exploited to trigger a NULL pointer dereference.

CVE-2018-5800 libraw vulnerability CVSS: 4.3 07 Dec 2018, 22:29 UTC

An off-by-one error within the "LibRaw::kodak_ycbcr_load_raw()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.7 can be exploited to cause a heap-based buffer overflow and subsequently cause a crash.

CVE-2017-16910 libraw vulnerability CVSS: 4.3 07 Dec 2018, 22:29 UTC

An error within the "LibRaw::xtrans_interpolate()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.6 can be exploited to cause an invalid read memory access and subsequently a Denial of Service condition.

CVE-2017-16909 libraw vulnerability CVSS: 6.8 07 Dec 2018, 22:29 UTC

An error related to the "LibRaw::panasonic_load_raw()" function (dcraw_common.cpp) in LibRaw versions prior to 0.18.6 can be exploited to cause a heap-based buffer overflow and subsequently cause a crash via a specially crafted TIFF image.

CVE-2018-10529 libraw vulnerability CVSS: 6.8 29 Apr 2018, 03:29 UTC

An issue was discovered in LibRaw 0.18.9. There is an out-of-bounds read affecting the X3F property table list implementation in libraw_x3f.cpp and libraw_cxx.cpp.

CVE-2018-10528 libraw vulnerability CVSS: 6.8 29 Apr 2018, 03:29 UTC

An issue was discovered in LibRaw 0.18.9. There is a stack-based buffer overflow in the utf2char function in libraw_cxx.cpp.

CVE-2017-14608 libraw vulnerability CVSS: 6.4 20 Sep 2017, 17:29 UTC

In LibRaw through 0.18.4, an out of bounds read flaw related to kodak_65000_load_raw has been reported in dcraw/dcraw.c and internal/dcraw_common.cpp. An attacker could possibly exploit this flaw to disclose potentially sensitive memory or cause an application crash.

CVE-2017-14348 libraw vulnerability CVSS: 6.8 12 Sep 2017, 19:29 UTC

LibRaw before 0.18.4 has a heap-based Buffer Overflow in the processCanonCameraInfo function via a crafted file.

CVE-2017-14265 libraw vulnerability CVSS: 7.5 11 Sep 2017, 09:29 UTC

A Stack-based Buffer Overflow was discovered in xtrans_interpolate in internal/dcraw_common.cpp in LibRaw before 0.18.3. It could allow a remote denial of service or code execution attack.

CVE-2017-13735 libraw vulnerability CVSS: 5.0 29 Aug 2017, 06:29 UTC

There is a floating point exception in the kodak_radc_load_raw function in dcraw_common.cpp in LibRaw 0.18.2. It will lead to a remote denial of service attack.

CVE-2017-6887 libraw vulnerability CVSS: 6.8 16 May 2017, 16:29 UTC

A boundary error within the "parse_tiff_ifd()" function (internal/dcraw_common.cpp) in LibRaw versions before 0.18.2 can be exploited to cause a memory corruption via e.g. a specially crafted KDC file with model set to "DSLR-A100" and containing multiple sequences of 0x100 and 0x14A TAGs.

CVE-2017-6886 libraw vulnerability CVSS: 7.5 16 May 2017, 16:29 UTC

An error within the "parse_tiff_ifd()" function (internal/dcraw_common.cpp) in LibRaw versions before 0.18.2 can be exploited to corrupt memory.

CVE-2017-6890 libraw vulnerability CVSS: 7.5 15 May 2017, 18:29 UTC

A boundary error within the "foveon_load_camf()" function (dcraw_foveon.c) when initializing a huffman table in LibRaw-demosaic-pack-GPL2 before 0.18.2 can be exploited to cause a stack-based buffer overflow.

CVE-2017-6889 libraw vulnerability CVSS: 7.5 15 May 2017, 18:29 UTC

An integer overflow error within the "foveon_load_camf()" function (dcraw_foveon.c) in LibRaw-demosaic-pack-GPL2 before 0.18.2 can be exploited to cause a heap-based buffer overflow.

CVE-2013-1439 libraw vulnerability CVSS: 4.3 16 Sep 2013, 19:14 UTC

The "faster LJPEG decoder" in libraw 0.13.x, 0.14.x, and 0.15.x before 0.15.4 allows context-dependent attackers to cause a denial of service (NULL pointer dereference) via a crafted photo file.

CVE-2013-2127 libraw vulnerability CVSS: 7.5 14 Aug 2013, 15:55 UTC

Buffer overflow in the exposure correction code in LibRaw before 0.15.1 allows context-dependent attackers to cause a denial of service (crash) and possibly execute arbitrary code via unspecified vectors.

CVE-2013-2126 libraw vulnerability CVSS: 7.5 14 Aug 2013, 15:55 UTC

Multiple double free vulnerabilities in the LibRaw::unpack function in libraw_cxx.cpp in LibRaw before 0.15.2 allow context-dependent attackers to cause a denial of service (application crash) and possibly execute arbitrary code via a malformed full-color (1) Foveon or (2) sRAW image file.