Live threats

All CVEs / Opencv

CVE-2019-19624Opencv

Medium 6.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Opencv.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
opencvopencv< 4.1.1
redhatenterprise_linux8.0

Official sources

References

Links published by the sources. Open them with care.