Vulnerabilities in pkg:pypi/opencv-contrib-python
PACKAGEGHSA-cxjf-x6jp-p7mc is a HIGH (CVSS 8.8) opencv-contrib-python bundled libwebp binaries vulnerability (CWE-787: Out-of-bounds Write) affecting Opencv contrib python libraries in the PyPI ecosystem. The issue involves opencv-contrib-python bundled libwebp binaries in wheels that are vulnerable to cve-2023-4863. Remediation is available by upgrading affected packages to version 4.8.1.78.
pkg:pypi/opencv-contrib-python
Vulnerability advisories affecting package pkg:pypi/opencv-contrib-python. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-cxjf-x6jp-p7mc | - | HIGH | opencv-contrib-python bundled libwebp binaries in wheels that are vulnerable to CVE-2023-4863 |
| GHSA-m6vm-8g8v-xfjh | CVE-2019-5063 | HIGH | Out-of-bounds Write in OpenCV |
| GHSA-cvhw-2593-5j2q | CVE-2016-1516 | HIGH | Double Free in OpenCV |
| GHSA-wq8f-wvqp-xvvm | CVE-2017-12863 | HIGH | Integer Overflow or Wraparound in OpenCV |
| GHSA-5rpc-gwh9-q9fg | CVE-2017-12862 | HIGH | Improper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV |
| GHSA-vc29-rj92-gc7j | CVE-2017-12606 | HIGH | Out-of-bounds Write in OpenCV |
| GHSA-rqxg-xvcq-3v2f | CVE-2017-12605 | HIGH | Out-of-bounds Write in OpenCV |
| GHSA-c7gp-2pch-qh2v | CVE-2017-12604 | HIGH | Out-of-bounds Write in OpenCV |
| GHSA-6v6p-p97v-g2p7 | CVE-2017-12603 | HIGH | Out-of-bounds Write in OpenCV |
| GHSA-9g8h-pjm4-q92p | CVE-2018-5268 | MODERATE | Out-of-bounds Write in OpenCV. |
| GHSA-m43c-649m-pm48 | CVE-2017-1000450 | HIGH | Integer Overflow or Wraparound in OpenCV. |
| GHSA-jcxv-2j3h-mg59 | CVE-2017-17760 | MODERATE | Improper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV |
| GHSA-267x-w5hx-8hjr | CVE-2017-12864 | HIGH | Integer Overflow or Wraparound in OpenCV |
| GHSA-89rj-5ggj-3p9p | CVE-2018-5269 | MODERATE | Reachable Assertion in OpenCV. |
| GHSA-hxfw-jm98-v4mq | CVE-2019-15939 | MODERATE | Divide By Zero in OpenCV. |
| GHSA-3448-vrgh-85xr | CVE-2019-14493 | HIGH | NULL Pointer Dereference in OpenCV. |
| GHSA-8w3x-457r-wg53 | CVE-2017-12597 | HIGH | Out-of-bounds Write in OpenCV |
| GHSA-33h2-69j3-r336 | CVE-2017-12598 | HIGH | Out-of-bounds Read in OpenCV |
| GHSA-fvq6-392h-6mjj | CVE-2017-12599 | HIGH | Out-of-bounds Read in OpenCV |
| GHSA-w96g-3p64-63wr | CVE-2017-12601 | HIGH | Improper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV |
| GHSA-fffj-9qwg-qmh5 | CVE-2016-1517 | MODERATE | Improper Input Validation in OpenCV |
| GHSA-fr58-2xhv-qp3w | CVE-2017-12600 | HIGH | Denial of Service in OpenCV |
| GHSA-pqjj-6f5q-gqph | CVE-2017-12602 | HIGH | Denial of Service in OpenCV |
| GHSA-634c-v2xv-ffpg | CVE-2017-14136 | MODERATE | Out-of-bounds Write in OpenCV |
| GHSA-83rh-hx5x-q9p5 | CVE-2017-18009 | HIGH | Out-of-bounds Read in OpenCV |
| GHSA-fm39-cw8h-3p63 | CVE-2019-14491 | HIGH | Out-of-bounds Read in OpenCV |
| GHSA-fw99-f933-rgh8 | CVE-2019-14492 | HIGH | Out-of-bounds Read and Out-of-bounds Write in OpenCV |
| GHSA-x3rm-644h-67m8 | CVE-2019-16249 | MODERATE | Out-of-bounds Read in OpenCV |
| GHSA-8849-5h85-98qw | CVE-2019-9423 | HIGH | Out-of-bounds Write in OpenCV |
| GHSA-jggw-2q6g-c3m6 | CVE-2019-19624 | MODERATE | Out-of-bounds Read in OpenCV |
| GHSA-q799-q27x-vp7w | CVE-2019-5064 | HIGH | Out-of-bounds Write in OpenCV |
GHSA-cxjf-x6jp-p7mc at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix GHSA-cxjf-x6jp-p7mc
To remediate this vulnerability, upgrade all affected Opencv contrib 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-contrib-python>=4.8.1.78
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show opencv-contrib-python
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-cxjf-x6jp-p7mc, inspect your installed packages using pip:
pip show opencv-contrib-python
Analyze the terminal output to locate any version of Opencv contrib python in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.8.1.78), your application is affected.
Note: The pip show opencv-contrib-python command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-787: Out-of-bounds Write, where the product writes data past the end, or before the beginning, of the intended buffer. In Opencv contrib 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
GHSA-cxjf-x6jp-p7mc Affected Opencv contrib python Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
opencv-contrib-python
|
PyPI |
< 4.8.1.78
|
4.8.1.78
|
References
Frequently Asked Questions
What is GHSA-cxjf-x6jp-p7mc?
Which Opencv contrib python versions are affected?
What version fixes GHSA-cxjf-x6jp-p7mc?
Is opencv-contrib-python affected?
What is the CVSS score of GHSA-cxjf-x6jp-p7mc?
What CWE is associated with GHSA-cxjf-x6jp-p7mc?
How can I check PyPI dependencies for GHSA-cxjf-x6jp-p7mc?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cxjf-x6jp-p7mc",
"modified" : "2024-08-30T23:37:19Z",
"published" : "2024-08-30T23:37:19Z",
"aliases" : [ ],
"summary" : "opencv-contrib-python bundled libwebp binaries in wheels that are vulnerable to CVE-2023-4863",
"details" : "opencv-contrib-python versions before v4.8.1.78 bundled libwebp binaries in wheels that are vulnerable to CVE-2023-4863. opencv-contrib-python v4.8.1.78 upgrades the bundled libwebp binary to v1.3.2.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "opencv-contrib-python"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.8.1.78"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-4863"
}, {
"type" : "WEB",
"url" : "https://github.com/opencv/opencv/pull/24274"
}, {
"type" : "WEB",
"url" : "https://github.com/opencv/opencv/commit/687fc11626901cff09d2b3b5f331fd59190ad4c7"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-j7hp-h8jx-5ppr"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/opencv/opencv-python"
}, {
"type" : "WEB",
"url" : "https://github.com/opencv/opencv/wiki/ChangeLog#version481"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/opencv-contrib-python/PYSEC-2023-181.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-787" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-08-30T23:37:19Z",
"nvd_published_at" : null
}
}