Out-of-bounds Read Affecting opencv/opencv package, versions [,4.1.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.1% (43rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-OPENCVOPENCV-2369574
  • published26 Jan 2022
  • disclosed6 Dec 2019
  • creditUnknown

Introduced: 6 Dec 2019

CVE-2019-19624  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade opencv/opencv to version 4.1.1 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read. 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.

CVSS Scores

version 3.1