opencv CVE Vulnerabilities & Metrics

Focus on opencv vulnerabilities and metrics.

Last updated: 08 Mar 2025, 23:25 UTC

About opencv Security Exposure

This page consolidates all known Common Vulnerabilities and Exposures (CVEs) associated with opencv. 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 opencv CVEs: 34
Earliest CVE date: 10 Apr 2017, 03:59 UTC
Latest CVE date: 10 May 2023, 06:15 UTC

Latest CVE reference: CVE-2023-2618

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

CVSS Stats

Average CVSS: 5.92

Max CVSS: 7.8

Critical CVEs (≥9): 0

CVSS Range vs. Count

Range Count
0.0-3.9 0
4.0-6.9 32
7.0-8.9 2
9.0-10.0 0

CVSS Distribution Chart

Top 5 Highest CVSS opencv CVEs

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

All CVEs for opencv

CVE-2023-2618 opencv vulnerability CVSS: 5.0 10 May 2023, 06:15 UTC

A vulnerability, which was classified as problematic, has been found in OpenCV wechat_qrcode Module up to 4.7.0. Affected by this issue is the function DecodedBitStreamParser::decodeHanziSegment of the file qrcode/decoder/decoded_bit_stream_parser.cpp. The manipulation leads to memory leak. The attack may be launched remotely. The name of the patch is 2b62ff6181163eea029ed1cab11363b4996e9cd6. It is recommended to apply a patch to fix this issue. The identifier of this vulnerability is VDB-228548.

CVE-2023-2617 opencv vulnerability CVSS: 5.0 10 May 2023, 06:15 UTC

A vulnerability classified as problematic was found in OpenCV wechat_qrcode Module up to 4.7.0. Affected by this vulnerability is the function DecodedBitStreamParser::decodeByteSegment of the file qrcode/decoder/decoded_bit_stream_parser.cpp. The manipulation leads to null pointer dereference. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. It is recommended to apply a patch to fix this issue. The associated identifier of this vulnerability is VDB-228547.

CVE-2019-5064 opencv vulnerability CVSS: 6.8 03 Jan 2020, 17:15 UTC

An exploitable heap buffer overflow vulnerability exists in the data structure persistence functionality of OpenCV, before version 4.2.0. A specially crafted JSON file can cause a buffer overflow, resulting in multiple heap corruptions and potentially code execution. An attacker can provide a specially crafted file to trigger this vulnerability.

CVE-2019-5063 opencv vulnerability CVSS: 6.8 03 Jan 2020, 17:15 UTC

An exploitable heap buffer overflow vulnerability exists in the data structure persistence functionality of OpenCV 4.1.0. A specially crafted XML file can cause a buffer overflow, resulting in multiple heap corruptions and potential code execution. An attacker can provide a specially crafted file to trigger this vulnerability.

CVE-2019-19624 opencv vulnerability CVSS: 6.4 06 Dec 2019, 15:15 UTC

An out-of-bounds read was discovered in OpenCV before 4.1.1. Specifically, variable coarsest_scale is assumed to be greater than or equal to finest_scale within the calc()/ocl_calc() functions in dis_flow.cpp. However, this is not true when dealing with small images, leading to an out-of-bounds read of the heap-allocated arrays Ux and Uy.

CVE-2019-16249 opencv vulnerability CVSS: 5.0 11 Sep 2019, 23:15 UTC

OpenCV 4.1.1 has an out-of-bounds read in hal_baseline::v_load in core/hal/intrin_sse.hpp when called from computeSSDMeanNorm in modules/video/src/dis_flow.cpp.

CVE-2019-15939 opencv vulnerability CVSS: 4.3 05 Sep 2019, 16:15 UTC

An issue was discovered in OpenCV 4.1.0. There is a divide-by-zero error in cv::HOGDescriptor::getDescriptorSize in modules/objdetect/src/hog.cpp.

CVE-2019-14493 opencv vulnerability CVSS: 5.0 01 Aug 2019, 17:15 UTC

An issue was discovered in OpenCV before 4.1.1. There is a NULL pointer dereference in the function cv::XMLParser::parse at modules/core/src/persistence.cpp.

CVE-2019-14492 opencv vulnerability CVSS: 5.0 01 Aug 2019, 17:15 UTC

An issue was discovered in OpenCV before 3.4.7 and 4.x before 4.1.1. There is an out of bounds read/write in the function HaarEvaluator::OptFeature::calc in modules/objdetect/src/cascadedetect.hpp, which leads to denial of service.

CVE-2019-14491 opencv vulnerability CVSS: 6.4 01 Aug 2019, 17:15 UTC

An issue was discovered in OpenCV before 3.4.7 and 4.x before 4.1.1. There is an out of bounds read in the function cv::predictOrdered<cv::HaarEvaluator> in modules/objdetect/src/cascadedetect.hpp, which leads to denial of service.

CVE-2018-7714 opencv vulnerability CVSS: 5.0 05 Mar 2018, 23:29 UTC

The validateInputImageSize function in modules/imgcodecs/src/loadsave.cpp in OpenCV 3.4.1 allows remote attackers to cause a denial of service (assertion failure) because (pixels <= (1<<30)) may be false. Note: “OpenCV CV_Assert is not an assertion (C-like assert()), it is regular C++ exception which can raised in case of invalid or non-supported parameters.

CVE-2018-7713 opencv vulnerability CVSS: 5.0 05 Mar 2018, 23:29 UTC

The validateInputImageSize function in modules/imgcodecs/src/loadsave.cpp in OpenCV 3.4.1 allows remote attackers to cause a denial of service (assertion failure) because (size.width <= (1<<20)) may be false. Note: “OpenCV CV_Assert is not an assertion (C-like assert()), it is regular C++ exception which can raised in case of invalid or non-supported parameters.

CVE-2018-7712 opencv vulnerability CVSS: 5.0 05 Mar 2018, 23:29 UTC

The validateInputImageSize function in modules/imgcodecs/src/loadsave.cpp in OpenCV 3.4.1 allows remote attackers to cause a denial of service (assertion failure) because (size.height <= (1<<20)) may be false. Note: “OpenCV CV_Assert is not an assertion (C-like assert()), it is regular C++ exception which can raised in case of invalid or non-supported parameters.

CVE-2018-5269 opencv vulnerability CVSS: 4.3 08 Jan 2018, 05:29 UTC

In OpenCV 3.3.1, an assertion failure happens in cv::RBaseStream::setPos in modules/imgcodecs/src/bitstrm.cpp because of an incorrect integer cast.

CVE-2018-5268 opencv vulnerability CVSS: 4.3 08 Jan 2018, 05:29 UTC

In OpenCV 3.3.1, a heap-based buffer overflow happens in cv::Jpeg2KDecoder::readComponent8u in modules/imgcodecs/src/grfmt_jpeg2000.cpp when parsing a crafted image file.

CVE-2017-1000450 opencv vulnerability CVSS: 6.8 02 Jan 2018, 17:29 UTC

In opencv/modules/imgcodecs/src/utils.cpp, functions FillUniColor and FillUniGray do not check the input length, which can lead to integer overflow. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 and earlier.

CVE-2017-18009 opencv vulnerability CVSS: 5.0 01 Jan 2018, 08:29 UTC

In OpenCV 3.3.1, a heap-based buffer over-read exists in the function cv::HdrDecoder::checkSignature in modules/imgcodecs/src/grfmt_hdr.cpp.

CVE-2017-17760 opencv vulnerability CVSS: 4.3 29 Dec 2017, 18:29 UTC

OpenCV 3.3.1 has a Buffer Overflow in the cv::PxMDecoder::readData function in grfmt_pxm.cpp, because an incorrect size value is used.

CVE-2017-14136 opencv vulnerability CVSS: 4.3 04 Sep 2017, 23:29 UTC

OpenCV (Open Source Computer Vision Library) 3.3 has an out-of-bounds write error in the function FillColorRow1 in utils.cpp when reading an image file by using cv::imread. NOTE: this vulnerability exists because of an incomplete fix for CVE-2017-12597.

CVE-2017-12864 opencv vulnerability CVSS: 6.8 15 Aug 2017, 16:29 UTC

In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function ReadNumber did not checkout the input length, which lead to integer overflow. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 and earlier.

CVE-2017-12863 opencv vulnerability CVSS: 6.8 15 Aug 2017, 16:29 UTC

In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function PxMDecoder::readData has an integer overflow when calculate src_pitch. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 and earlier.

CVE-2017-12862 opencv vulnerability CVSS: 6.8 15 Aug 2017, 16:29 UTC

In modules/imgcodecs/src/grfmt_pxm.cpp, the length of buffer AutoBuffer _src is small than expected, which will cause copy buffer overflow later. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 and earlier.

CVE-2017-12606 opencv vulnerability CVSS: 6.8 07 Aug 2017, 01:29 UTC

OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the function FillColorRow4 in utils.cpp when reading an image file by using cv::imread.

CVE-2017-12605 opencv vulnerability CVSS: 6.8 07 Aug 2017, 01:29 UTC

OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the FillColorRow8 function in utils.cpp when reading an image file by using cv::imread.

CVE-2017-12604 opencv vulnerability CVSS: 6.8 07 Aug 2017, 01:29 UTC

OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the FillUniColor function in utils.cpp when reading an image file by using cv::imread.

CVE-2017-12603 opencv vulnerability CVSS: 6.8 07 Aug 2017, 01:29 UTC

OpenCV (Open Source Computer Vision Library) through 3.3 has an invalid write in the cv::RLByteStream::getBytes function in modules/imgcodecs/src/bitstrm.cpp when reading an image file by using cv::imread, as demonstrated by the 2-opencv-heapoverflow-fseek test case.

CVE-2017-12602 opencv vulnerability CVSS: 7.8 07 Aug 2017, 01:29 UTC

OpenCV (Open Source Computer Vision Library) through 3.3 has a denial of service (memory consumption) issue, as demonstrated by the 10-opencv-dos-memory-exhaust test case.

CVE-2017-12601 opencv vulnerability CVSS: 6.8 07 Aug 2017, 01:29 UTC

OpenCV (Open Source Computer Vision Library) through 3.3 has a buffer overflow in the cv::BmpDecoder::readData function in modules/imgcodecs/src/grfmt_bmp.cpp when reading an image file by using cv::imread, as demonstrated by the 4-buf-overflow-readData-memcpy test case.

CVE-2017-12600 opencv vulnerability CVSS: 7.8 07 Aug 2017, 01:29 UTC

OpenCV (Open Source Computer Vision Library) through 3.3 has a denial of service (CPU consumption) issue, as demonstrated by the 11-opencv-dos-cpu-exhaust test case.

CVE-2017-12599 opencv vulnerability CVSS: 6.8 07 Aug 2017, 01:29 UTC

OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds read error in the function icvCvt_BGRA2BGR_8u_C4C3R when reading an image file by using cv::imread.

CVE-2017-12598 opencv vulnerability CVSS: 6.8 07 Aug 2017, 01:29 UTC

OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds read error in the cv::RBaseStream::readBlock function in modules/imgcodecs/src/bitstrm.cpp when reading an image file by using cv::imread, as demonstrated by the 8-opencv-invalid-read-fread test case.

CVE-2017-12597 opencv vulnerability CVSS: 6.8 07 Aug 2017, 01:29 UTC

OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the function FillColorRow1 in utils.cpp when reading an image file by using cv::imread.

CVE-2016-1517 opencv vulnerability CVSS: 4.3 10 Apr 2017, 03:59 UTC

OpenCV 3.0.0 allows remote attackers to cause a denial of service (segfault) via vectors involving corrupt chunks.

CVE-2016-1516 opencv vulnerability CVSS: 6.8 10 Apr 2017, 03:59 UTC

OpenCV 3.0.0 has a double free issue that allows attackers to execute arbitrary code.