CVE-2019-19624
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
Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | opencv | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | opencv | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | opencv | Fix pending | 3.2.0+dfsg-4ubuntu0.1+esm4 (Ubuntu Pro) | UBUNTU-CVE-2019-19624 |
| Ubuntu 16.04 | opencv | Not affected vulnerable_code_not_present | ||
| Debian 14 | opencv | Fixed | 4.1.2+dfsg-3 | DEBIAN-CVE-2019-19624 |
| Debian 13 | opencv | Fixed | 4.1.2+dfsg-3 | DEBIAN-CVE-2019-19624 |
| Debian 12 | opencv | Fixed | 4.1.2+dfsg-3 | DEBIAN-CVE-2019-19624 |
| Red Hat Enterprise Linux 8 | opencv | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | opencv-contrib | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | opencv-core | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | opencv-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | opencv-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | python3-opencv | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | opencv | Not affected | ||
| Red Hat Enterprise Linux 7 | opencv-core | Not affected | ||
| Red Hat Enterprise Linux 7 | opencv-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | opencv-devel-docs | Not affected | ||
| Red Hat Enterprise Linux 7 | opencv-python | Not affected | ||
| Red Hat Enterprise Linux 6 | opencv | Not affected | ||
| Red Hat Enterprise Linux 6 | opencv-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | opencv-devel-docs | Not affected | ||
| Red Hat Enterprise Linux 6 | opencv-python | Not affected | ||
| PyPI library | opencv-contrib-python | Fixed | 4.1.0.25 | GHSA-jggw-2q6g-c3m6 |
| PyPI library | opencv-contrib-python-headless | Fixed | 4.1.0.25 | PYSEC-2026-723 |
| PyPI library | opencv-python | Fixed | 4.1.0.25 | GHSA-jggw-2q6g-c3m6 |
| PyPI library | opencv-python-headless | Fixed | 4.1.0.25 | PYSEC-2026-2839 |
References
- https://github.com/opencv/opencv/issues/14554
- https://github.com/opencv/opencv/commit/d1615ba11a93062b1429fce9f0f638d1572d3418
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.