Advisory

GHSA-jggw-2q6g-c3m6

Also known as: CVE-2019-19624, PYSEC-2026-2800, 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: The source's own band: MODERATE

Dates

Published
2021-10-12 22:22 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

opencv-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-python==4.1.0.25

opencv-python-headless

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-python-headless==4.1.0.25

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

opencv-contrib-python-headless

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-headless==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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences