CVE-2019-19624 Out-of-bounds Read in OpenCV
An out-of-bounds read in OpenCV's optical flow calculation allows attackers to cause denial of service or disclose memory contents via small images.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-19624?
CVE-2019-19624 is a medium-severity memory corruption vulnerability in Redhat Enterprise Linux, published on 6 Dec 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-125
Which versions are affected by CVE-2019-19624?
12 open source packages ship an affected version, including opencv-contrib-python, opencv-contrib-python-headless and opencv-python. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
opencv-contrib-python PyPI | All versions | 4.1.0.25 |
opencv-contrib-python PyPI | All versions | 4.1.0.25 |
opencv-contrib-python PyPI | All versions | 4.1.0.25 |
opencv-contrib-python-headless PyPI | All versions | 4.1.0.25 |
opencv-contrib-python-headless PyPI | All versions | 4.1.0.25 |
opencv-contrib-python-headless PyPI | All versions | 4.1.0.25 |
6 more packages
opencv-python PyPI | All versions | 4.1.0.25 |
opencv-python PyPI | All versions | 4.1.0.25 |
opencv-python PyPI | All versions | 4.1.0.25 |
opencv-python-headless PyPI | All versions | 4.1.0.25 |
opencv-python-headless PyPI | All versions | 4.1.0.25 |
opencv-python-headless PyPI | All versions | 4.1.0.25 |
Products include Opencv Opencv, Redhat Enterprise Linux.
How do I fix CVE-2019-19624?
Upgrade opencv-contrib-python to 4.1.0.25 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2019-19624 being exploited?
There is no known exploitation of CVE-2019-19624 in the wild and no public exploit code.
Other vulnerabilities in Redhat Enterprise Linux
Sources
Also known as DEBIAN-CVE-2019-19624, GHSA-jggw-2q6g-c3m6, PYSEC-2026-2800, PYSEC-2026-2824, PYSEC-2026-2839, PYSEC-2026-723 and 1 more.