Skip to content
OpenAdvisories
Medium · 6.5 CVE-2019-19624 EUVD-2021-2217GHSA-jggw-2q6g-c3m6PYSEC-2026-2800PYSEC-2026-2824PYSEC-2026-2839PYSEC-2026-723

Out-of-bounds Read in OpenCV

Published Dec 6, 2019 · Updated Aug 5, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 opencv 4.1.2+dfsg-3 —
Debian 13 opencv 4.1.2+dfsg-3 —
Debian 12 opencv 4.1.2+dfsg-3 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS opencv 4.5.4+dfsg-9ubuntu4+esm1 USN-7247-1
Ubuntu Pro 18.04 LTS opencv 3.2.0+dfsg-4ubuntu0.1+esm4 USN-7247-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI opencv-contrib-python < 4.1.0.25 4.1.0.25 GHSA-jggw-2q6g-c3m6
PyPI opencv-contrib-python-headless < 4.1.0.25 4.1.0.25 GHSA-jggw-2q6g-c3m6
PyPI opencv-python < 4.1.0.25 4.1.0.25 GHSA-jggw-2q6g-c3m6
PyPI opencv-python-headless < 4.1.0.25 4.1.0.25 GHSA-jggw-2q6g-c3m6

Advisories 1

References