GHSA-wq8f-wvqp-xvvm

Suggest an improvement
Source
https://github.com/advisories/GHSA-wq8f-wvqp-xvvm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-wq8f-wvqp-xvvm/GHSA-wq8f-wvqp-xvvm.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-wq8f-wvqp-xvvm
Aliases
Published
2021-10-12T22:02:35Z
Modified
2026-09-10T03:46:45Z
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
Integer Overflow or Wraparound in OpenCV
Details

In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function PxMDecoder::readData has an 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 (corresponding to OpenCV-Python 3.3.0.9) and earlier.

Database specific
{
    "cwe_ids":  [
        "CWE-190"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-10-07T20:39:41Z",
    "nvd_published_at":  "2017-08-15T16: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-wq8f-wvqp-xvvm/GHSA-wq8f-wvqp-xvvm.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-wq8f-wvqp-xvvm/GHSA-wq8f-wvqp-xvvm.json"