CVE-2019-19624
MEDIUM 6.5CVSS 3.1Out-of-bounds Read in OpenCV
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.
- Published
- 6 Dec 2019
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-125
- Also known as
- GHSA-jggw-2q6g-c3m6PYSEC-2026-2800PYSEC-2026-2824PYSEC-2026-2839PYSEC-2026-723
- Sources
- NVDJSONOSV GHSA-jggw-2q6g-c3m6JSONOSV PYSEC-2026-2800JSONOSV PYSEC-2026-2824JSONOSV PYSEC-2026-2839JSONOSV PYSEC-2026-723JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.4 | AV:N/AC:L/Au:N/C:P/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | opencv | opencvcpe:2.3:a:opencv:opencv:*:*:*:*:*:*:*:* |
< 4.1.1 | 4.1.1 |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| OSV | PyPI | opencv-python | < 4.1.0.25 | 4.1.0.25 |
| OSV | PyPI | opencv-python-headless | < 4.1.0.25 | 4.1.0.25 |
| OSV | PyPI | opencv-contrib-python | < 4.1.0.25 | 4.1.0.25 |
| OSV | PyPI | opencv-contrib-python-headless | < 4.1.0.25 | 4.1.0.25 |
References
- https://github.com/opencv/opencv/commit/d1615ba11a93062b1429fce9f0f638d1572d3418 · Patch, Third Party Advisory, WEB
- https://github.com/opencv/opencv/issues/14554 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://access.redhat.com/security/cve/cve-2019-19624 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-19624 · ADVISORY
- https://github.com/opencv/opencv-python · PACKAGE
- https://github.com/opencv/opencv-python/releases/tag/25 · WEB
- https://pypi.org/project/opencv-contrib-python · PACKAGE
- https://github.com/advisories/GHSA-jggw-2q6g-c3m6 · ADVISORY
- https://pypi.org/project/opencv-python · PACKAGE
- https://pypi.org/project/opencv-python-headless · PACKAGE
- https://pypi.org/project/opencv-contrib-python-headless · PACKAGE
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 6 Dec 2019)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 12 Oct 2021)