CVE-2019-19624
MEDIUM6.5EPSS 0.06%Out-of-bounds Read in OpenCV
Published: 10/12/2021Modified: 4/28/2026
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 packages (5)
- Debian/opencvfrom 0, < 4.1.2+dfsg-3
- PyPI/opencv-contrib-pythonfrom 0, < 4.1.0.25
- PyPI/opencv-contrib-python-headlessfrom 0, < 4.1.0.25
- PyPI/opencv-pythonfrom 0, < 4.1.0.25
- PyPI/opencv-python-headlessfrom 0, < 4.1.0.25
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
References (7)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2019-19624
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2019-19624
- PATCHhttps://github.com/opencv/opencv-python
- WEBhttps://access.redhat.com/security/cve/cve-2019-19624
- WEBhttps://github.com/opencv/opencv/commit/d1615ba11a93062b1429fce9f0f638d1572d3418
- WEBhttps://github.com/opencv/opencv/issues/14554
- WEBhttps://github.com/opencv/opencv-python/releases/tag/25