OpenCV up to 3.3 grfmt_pxm.cpp PxMDecoder::readData integer overflow
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.4 | $0-$5k | 0.00 |
Summary
A vulnerability has been found in OpenCV up to 3.3 and classified as problematic. This affects the function PxMDecoder::readData of the file opencv/modules/imgcodecs/src/grfmt_pxm.cpp. The manipulation leads to integer overflow.
This vulnerability is documented as CVE-2017-12863. The attack can be initiated remotely. There is not any exploit available.
The affected component should be upgraded.
Details
A vulnerability, which was classified as problematic, has been found in OpenCV up to 3.3 (Image Processing Software). This issue affects the function PxMDecoder::readData of the file opencv/modules/imgcodecs/src/grfmt_pxm.cpp. The manipulation with an unknown input leads to a integer overflow vulnerability. Using CWE to declare the problem leads to CWE-190. The product performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control. Impacted is availability. The summary by CVE is:
In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function PxMDecoder::readData has a 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.
The bug was discovered 08/15/2017. The weakness was released 08/15/2017 (Website). It is possible to read the advisory at github.com. The identification of this vulnerability is CVE-2017-12863 since 08/15/2017. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. It demands that the victim is doing some kind of user interaction. Technical details of the vulnerability are known, but there is no available exploit.
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). Entries connected to this vulnerability are available at VDB-99498, VDB-104884, VDB-104885 and VDB-104886. Be aware that VulDB is the high quality source for vulnerability data.
Product
Type
Name
Version
License
Website
- Product: https://github.com/opencv/opencv/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.6VulDB Meta Temp Score: 6.4
VulDB Base Score: 4.3
VulDB Temp Score: 4.1
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 8.8
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Integer overflowCWE: CWE-190 / CWE-189
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
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 Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Timeline
08/15/2017 🔍08/15/2017 🔍
08/15/2017 🔍
08/15/2017 🔍
08/16/2017 🔍
09/29/2017 🔍
10/02/2017 🔍
12/15/2022 🔍
Sources
Product: github.comAdvisory: 9371
Status: Not defined
CVE: CVE-2017-12863 (🔍)
GCVE (CVE): GCVE-0-2017-12863
GCVE (VulDB): GCVE-100-105311
See also: 🔍
Entry
Created: 08/16/2017 03:49Updated: 12/15/2022 18:15
Changes: 08/16/2017 03:49 (72), 11/07/2019 08:12 (3), 12/15/2022 18:07 (4), 12/15/2022 18:15 (1)
Complete: 🔍
Cache ID: 216::103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.