What’s Vulnerable › Vulnerabilities
CVE-2019-19624
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2019-12-06 · updated 2026-06-17
- Weakness: CWE-125
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
- OpenCV 3.0.0: before 4.1.1 — fixed in 4.1.1
- Red Hat Enterprise Linux: 8.0
How to fix
Upgrade to a fixed version: OpenCV 3.0.0 4.1.1. Check the vendor advisory for mitigations.
References
- https://github.com/opencv/opencv/commit/d1615ba11a93062b1429fce9f0f638d1572d3418
- https://github.com/opencv/opencv/issues/14554
- https://access.redhat.com/security/cve/cve-2019-19624
- https://github.com/opencv/opencv/commit/d1615ba11a93062b1429fce9f0f638d1572d3418
- https://github.com/opencv/opencv/issues/14554
Get alerted when CVE-2019-19624 or the next vulnerability affects your stack