CVE-2019-19624Opencv
Medium 6.5 No auth needed
Follow: this CVE · Opencv · Opencv We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- 1.8% probability of exploitation in 30 days · percentile 78
- Auth required
- No
- Published
- Dec 6, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-125
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
What happens
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.
What to do
- Apply the vendor's security update for Opencv.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | opencv-contrib-python |
< 4.1.0.25 |
4.1.0.25 |
pip install "opencv-contrib-python>=4.1.0.25" |
| PyPI | opencv-contrib-python |
< 4.1.0.25 |
4.1.0.25 |
pip install "opencv-contrib-python>=4.1.0.25" |
| PyPI | opencv-contrib-python-headless |
< 4.1.0.25 |
4.1.0.25 |
pip install "opencv-contrib-python-headless>=4.1.0.25" |
| PyPI | opencv-contrib-python-headless |
< 4.1.0.25 |
4.1.0.25 |
pip install "opencv-contrib-python-headless>=4.1.0.25" |
| PyPI | opencv-python |
< 4.1.0.25 |
4.1.0.25 |
pip install "opencv-python>=4.1.0.25" |
| PyPI | opencv-python |
< 4.1.0.25 |
4.1.0.25 |
pip install "opencv-python>=4.1.0.25" |
| PyPI | opencv-python-headless |
< 4.1.0.25 |
4.1.0.25 |
pip install "opencv-python-headless>=4.1.0.25" |
| PyPI | opencv-python-headless |
< 4.1.0.25 |
4.1.0.25 |
pip install "opencv-python-headless>=4.1.0.25" |
Per OSV / GitHub Advisories (GHSA-jggw-2q6g-c3m6, PYSEC-2026-2800, PYSEC-2026-723, PYSEC-2026-2824, PYSEC-2026-2839). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| opencv | opencv | < 4.1.1 |
| redhat | enterprise_linux | 8.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Exploit Issue Tracking Third Party Advisory
- access.redhat.com Third Party Advisory