opencv: out-of-bounds read in DIS optflow algorithm when dealing with small images
Published Dec 6, 2019
6.5
MEDIUMCVSS 3.1
EPSS 1.76%
Description
An out-of-bounds read was discovered in OpenCV before 4.1.1. 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.
Affected products
No data.
Configuration 2
- 8.0
No data.
Red Hat Enterprise Linux 6
opencv
Not affected
Red Hat Enterprise Linux 7
opencv
Not affected
Red Hat Enterprise Linux 8
opencv
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | opencv | Not affected | n/a |
| Red Hat Enterprise Linux 7 | opencv | Not affected | n/a |
| Red Hat Enterprise Linux 8 | opencv | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue did not affect the versions of OpenCV as shipped with Red Hat Enterprise Linux 6, and 7 as they did not include support for DIS optflow algorithm. This issue affects OpenCV as shipped with Red Hat Enterprise Linux 8. However, the package has been built with C++ standard library hardening (_GLIBCXX_ASSERTIONS) that enables range checks for C++ arrays, vectors, and strings. This leads to an application exit due to an assertion statement and prevents the out-of-bounds read to be exploitable.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
AV:N/AC:L/Au:N/C:P/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 3, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 1.76% (0.01756) | 77.16th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.74% (0.01742) | 74.73th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.12% (0.00117) | 46.01th | v3 (v2023.03.01) |
| Jul 3, 2024 | 0.12% (0.00117) | 45.87th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.12% (0.00117) | 43.87th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.89% (0.00885) | 24.24th | v2 (v2022.01.01) |
| Feb 4, 2022 | 4.50% (0.04499) | 74.08th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.74% (0.02742) | 63.06th | v5 (v2026.06.15) |
| Jan 6, 2022 | 2.74% (0.02742) | 62.72th | v1 |
| Sep 1, 2021 | 0.62% (0.00624) | 45.04th | v1 |
| Apr 14, 2021 | 0.62% (0.00624) | 0.00th | v1 |
References (9)
- https://access.redhat.com/security/cve/CVE-2019-19624 Vendor Advisory
- https://access.redhat.com/security/cve/cve-2019-19624 Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1780543 Issue Tracking
- https://github.com/advisories/GHSA-jggw-2q6g-c3m6 Advisory
- https://github.com/opencv/opencv-python/releases/tag/25
- https://github.com/opencv/opencv/commit/d1615ba11a93062b1429fce9f0f638d1572d3418 x_refsource_MISCPatchThird Party Advisory
- https://github.com/opencv/opencv/issues/14554 x_refsource_MISCExploitIssue TrackingThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2019-19624
- https://www.cve.org/CVERecord?id=CVE-2019-19624
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2019-19624 | Vendor Advisory | |
| https://access.redhat.com/security/cve/cve-2019-19624 | Third Party Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1780543 | Issue Tracking | |
| https://github.com/advisories/GHSA-jggw-2q6g-c3m6 | Advisory | |
| https://github.com/opencv/opencv-python/releases/tag/25 | ||
| https://github.com/opencv/opencv/commit/d1615ba11a93062b1429fce9f0f638d1572d3418 | x_refsource_MISCPatchThird Party Advisory | |
| https://github.com/opencv/opencv/issues/14554 | x_refsource_MISCExploitIssue TrackingThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2019-19624 | ||
| https://www.cve.org/CVERecord?id=CVE-2019-19624 |
Change history (0)
No recorded changes yet.