GHSA-6v6p-p97v-g2p7

Suggest an improvement
Source
https://github.com/advisories/GHSA-6v6p-p97v-g2p7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-6v6p-p97v-g2p7/GHSA-6v6p-p97v-g2p7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6v6p-p97v-g2p7
Aliases
Published
2021-10-12T22:01:44Z
Modified
2026-09-10T03:49:09Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Out-of-bounds Write in OpenCV
Details

OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python and OpenCV-Contrib-Python 3.3.0.9) 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.

Database specific
{
    "cwe_ids":  [
        "CWE-787"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-10-07T21:00:22Z",
    "nvd_published_at":  "2017-08-07T01:29:00Z",
    "severity":  "HIGH"
}
References

Affected packages

PyPI / opencv-python

Package

Name
opencv-python
View open source insights on deps.dev
Purl
pkg:pypi/opencv-python

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.3.1.11

Database specific

last_known_affected_version_range
"<= 3.3.0.9"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-6v6p-p97v-g2p7/GHSA-6v6p-p97v-g2p7.json"

PyPI / opencv-contrib-python

Package

Name
opencv-contrib-python
View open source insights on deps.dev
Purl
pkg:pypi/opencv-contrib-python

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.3.1.11

Database specific

last_known_affected_version_range
"<= 3.3.0.9"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-6v6p-p97v-g2p7/GHSA-6v6p-p97v-g2p7.json"