GHSA-jcxv-2j3h-mg59

Suggest an improvement
Source
https://github.com/advisories/GHSA-jcxv-2j3h-mg59
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-jcxv-2j3h-mg59/GHSA-jcxv-2j3h-mg59.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-jcxv-2j3h-mg59
Aliases
Published
2021-10-12T22:03:09Z
Modified
2026-08-24T00:34:19Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Improper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV
Details

OpenCV 3.3.1 (corresponding with opencv-python and opencv-contrib-python 3.3.1.11) has a Buffer Overflow in the cv::PxMDecoder::readData function in grfmt_pxm.cpp, because an incorrect size value is used.

Database specific
{
    "cwe_ids":  [
        "CWE-119"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-10-07T20:20:01Z",
    "nvd_published_at":  "2017-12-29T18:29:00Z",
    "severity":  "MODERATE"
}
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.4.0.12

Database specific

last_known_affected_version_range
"<= 3.3.1.11"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-jcxv-2j3h-mg59/GHSA-jcxv-2j3h-mg59.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.4.0.12

Database specific

last_known_affected_version_range
"<= 3.3.1.11"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-jcxv-2j3h-mg59/GHSA-jcxv-2j3h-mg59.json"