CVE-2016-1517: Opencv python Improper Input Validation Vulnerability
MODERATECVE-2016-1517 is a MODERATE (CVSS 5.5) improper input validation vulnerability (CWE-20: Improper Input Validation) affecting Opencv python libraries in the PyPI ecosystem. The issue involves improper input validation in opencv. Remediation is available by upgrading affected packages to version 3.3.1.11.
CVE-2016-1517 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H).
How to Fix CVE-2016-1517
To remediate this vulnerability, upgrade all affected Opencv python dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install opencv-python>=3.3.1.11
pip install opencv-contrib-python>=3.3.1.11
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show opencv-python
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2016-1517, inspect your installed packages using pip:
pip show opencv-python
Analyze the terminal output to locate any version of Opencv python in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.1.11), your application is affected.
Note: The pip show opencv-python command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Opencv python, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2016-1517 Affected Opencv python Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
opencv-python
|
PyPI |
< 3.3.1.11
|
3.3.1.11
|
|
opencv-contrib-python
|
PyPI |
< 3.3.1.11
|
3.3.1.11
|
References
Frequently Asked Questions
What is CVE-2016-1517?
Which Opencv python versions are affected?
What version fixes CVE-2016-1517?
Is opencv-python affected?
Is opencv-contrib-python affected?
What is the CVSS score of CVE-2016-1517?
What CWE is associated with CVE-2016-1517?
How can I check PyPI dependencies for CVE-2016-1517?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fffj-9qwg-qmh5",
"modified" : "2021-10-08T18:19:43Z",
"published" : "2021-10-12T22:00:31Z",
"aliases" : [ "CVE-2016-1517" ],
"summary" : "Improper Input Validation in OpenCV",
"details" : "OpenCV 3.0.0 allows remote attackers to cause a denial of service (segfault) via vectors involving corrupt chunks. This issue was fixed in OpenCV version 3.3.1 (corresponding to OpenCV 3.3.1.11).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "opencv-python"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.3.1.11"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.3.0.10"
}
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "opencv-contrib-python"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.3.1.11"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.3.0.10"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-1517"
}, {
"type" : "WEB",
"url" : "https://github.com/opencv/opencv/issues/5956"
}, {
"type" : "WEB",
"url" : "https://github.com/opencv/opencv/pull/9376"
}, {
"type" : "WEB",
"url" : "https://arxiv.org/pdf/1701.04739.pdf"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/opencv/opencv-python"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-10-08T18:19:43Z",
"nvd_published_at" : null
}
}