GitHub Advisoryadvisory · PyPI

GHSA-jggw-2q6g-c3m6 Out-of-bounds Read in OpenCV

MEDIUM Published 2021-10-12 Modified 2021-10-06 Official page ↗
Aliases
CVE-2019-19624
Ecosystem
PyPI
Packages
opencv-python, opencv-python-headless, opencv-contrib-python, opencv-contrib-python-headless
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Weaknesses
CWE-125
Reviewed
2021-10-06

Affected packages

• PyPI opencv-python: < 4.1.0.25 → fixed in 4.1.0.25 • PyPI opencv-python-headless: < 4.1.0.25 → fixed in 4.1.0.25 • PyPI opencv-contrib-python: < 4.1.0.25 → fixed in 4.1.0.25 • PyPI opencv-contrib-python-headless: < 4.1.0.25 → fixed in 4.1.0.25

Description

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.

Related

Alias · CVE (1)

  • CVE-2019-19624 An out-of-bounds read was discovered in OpenCV before 4.1.1. vulnerability

Weakness · CWE (1)

  • CWE-125 Out-of-bounds Read weakness

References