Advisory

PYSEC-2026-2800

Also known as: CVE-2019-19624, GHSA-jggw-2q6g-c3m6, PYSEC-2026-2824, PYSEC-2026-2839, PYSEC-2026-723

Summary

Out-of-bounds Read in OpenCV

Details

An out-of-bounds read was discovered in OpenCV before 4.1.1 (OpenCV-Python before 4.1.0.25). 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.

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Dates

Published
2026-07-09 16:49 UTC
Modified
2026-07-13 16:42 UTC

Affected packages and fixes

opencv-contrib-python

PyPI · All systems

Affected

  • introduced 0, fixed 4.1.0.25 (ecosystem)

Fixed versions

4.1.0.25

Fix

  • Fixed version 4.1.0.25
    pip install --upgrade opencv-contrib-python==4.1.0.25

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences