OpenCV up to 3.3 utils.cpp cv::imread Image File out-of-bounds write

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.

A vulnerability was found in OpenCV up to 3.3 (Image Processing Software). It has been declared as critical. Affected by this vulnerability is the function cv::imread of the file utils.cpp. The manipulation as part of a Image File leads to a out-of-bounds write vulnerability. The CWE definition for the vulnerability is CWE-787. The product writes data past the end, or before the beginning, of the intended buffer. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:

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.

The bug was discovered 08/04/2017. The weakness was presented 08/07/2017 (Website). The advisory is shared at This vulnerability is known as CVE-2017-12606 since 08/06/2017. The attack can be launched remotely. The exploitation doesn't need any form of authentication. It demands that the victim is doing some kind of user interaction. Technical details are known, but no exploit is available.

The vulnerability was handled as a non-public zero-day exploit for at least 2 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 103575 (Debian DLA-1117-1 : opencv security update), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 171242 (OpenSUSE Security Update for opencv (openSUSE-SU-2018:1385-1)).

Upgrading eliminates this vulnerability. A possible mitigation has been published 2 months after the disclosure of the vulnerability.

The vulnerability is also documented in the vulnerability database at Tenable (103575).






CPE 2.3info

CPE 2.2info


VulDB CVSS-B Score: 🔍
VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍


VulDB Meta Base Score: 7.0
VulDB Meta Temp Score: 6.9

VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 8.8
NVD Vector: 🔍



VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍


Class: Out-of-bounds write
CWE: CWE-787 / CWE-119

Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍


Nessus ID: 103575
Nessus Name: Debian DLA-1117-1 : opencv security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 65163
OpenVAS Name: Debian LTS Advisory ([SECURITY] [DLA 1117-1] opencv security update)
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍


Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍


08/04/2017 🔍
08/06/2017 +2 days 🔍
08/06/2017 +0 days 🔍
08/07/2017 +1 days 🔍
08/07/2017 +0 days 🔍
09/29/2017 +53 days 🔍
10/02/2017 +3 days 🔍
12/15/2022 +1900 days 🔍


Advisory: 9309
Status: Not defined

CVE: CVE-2017-12606 (🔍)


Created: 08/07/2017 12:51 PM
Updated: 12/15/2022 08:56 AM
Changes: 08/07/2017 12:51 PM (74), 11/04/2019 08:52 AM (3), 12/15/2022 08:53 AM (4), 12/15/2022 08:56 AM (1)
Complete: 🔍
Cache ID: 44:241:40


No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!