GHSA-jggw-2q6g-c3m6

Suggest an improvement
Source
https://github.com/advisories/GHSA-jggw-2q6g-c3m6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-jggw-2q6g-c3m6/GHSA-jggw-2q6g-c3m6.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-jggw-2q6g-c3m6
Aliases
Published
2021-10-12T22:22:58Z
Modified
2026-08-24T00:34:19Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L CVSS Calculator
Summary
Out-of-bounds Read in OpenCV
Details

An out-of-bounds read was discovered in OpenCV before 4.1.1 (OpenCV-Python before 4.1.0.25). Specifically, variable coarsest_scale is assumed to be greater than or equal to finest_scale within the calc()/ocl_calc() functions in dis_flow.cpp. However, this is not true when dealing with small images, leading to an out-of-bounds read of the heap-allocated arrays Ux and Uy.

Database specific
{
    "cwe_ids": [
        "CWE-125"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2021-10-06T18:06:55Z",
    "nvd_published_at": "2019-12-06T15:15: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
4.1.0.25

Affected versions

3.*
3.4.0.14
3.4.1.15
3.4.2.17
3.4.3.18
3.4.4.19
3.4.5.20
3.4.6.27
3.4.7.28
3.4.8.29
3.4.9.31
3.4.9.33
3.4.10.35
3.4.10.37
3.4.11.39
3.4.11.41
3.4.11.43
3.4.11.45
3.4.13.47
3.4.14.51
3.4.14.53
3.4.15.55
3.4.16.57
3.4.16.59
3.4.17.61
3.4.17.63
3.4.18.65
4.*
4.0.0.21
4.0.1.23
4.0.1.24

Database specific

last_known_affected_version_range
"<= 4.1.0.24"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-jggw-2q6g-c3m6/GHSA-jggw-2q6g-c3m6.json"

PyPI / opencv-python-headless

Package

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

Affected ranges

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

Affected versions

3.*
3.4.3.18
3.4.4.19
3.4.5.20
3.4.6.27
3.4.7.28
3.4.8.29
3.4.9.33
3.4.10.37
3.4.11.39
3.4.11.41
3.4.11.43
3.4.11.45
3.4.13.47
3.4.14.51
3.4.14.53
3.4.15.55
3.4.16.57
3.4.16.59
3.4.17.61
3.4.17.63
3.4.18.65
4.*
4.0.0.21
4.0.1.24

Database specific

last_known_affected_version_range
"<= 4.1.0.24"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-jggw-2q6g-c3m6/GHSA-jggw-2q6g-c3m6.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
4.1.0.25

Affected versions

3.*
3.4.2.17
3.4.3.18
3.4.4.19
3.4.5.20
3.4.6.27
3.4.7.28
3.4.8.29
3.4.9.31
3.4.9.33
3.4.10.35
3.4.10.37
3.4.11.39
3.4.11.41
3.4.11.43
3.4.11.45
3.4.13.47
3.4.14.51
3.4.14.53
3.4.15.55
3.4.16.57
3.4.16.59
3.4.17.61
3.4.17.63
3.4.18.65
4.*
4.0.0.21
4.0.1.23
4.0.1.24

Database specific

last_known_affected_version_range
"<= 4.1.0.24"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-jggw-2q6g-c3m6/GHSA-jggw-2q6g-c3m6.json"

PyPI / opencv-contrib-python-headless

Package

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

Affected ranges

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

Affected versions

3.*
3.4.0.14
3.4.2.17
3.4.3.18
3.4.4.19
3.4.5.20
3.4.6.27
3.4.7.28
3.4.8.29
3.4.9.33
3.4.10.37
3.4.11.41
3.4.11.43
3.4.11.45
3.4.13.47
3.4.14.51
3.4.14.53
3.4.15.55
3.4.16.57
3.4.16.59
3.4.17.61
3.4.17.63
3.4.18.65
4.*
4.0.0.21
4.0.1.23
4.0.1.24

Database specific

last_known_affected_version_range
"<= 4.1.0.24"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-jggw-2q6g-c3m6/GHSA-jggw-2q6g-c3m6.json"