Out-of-bounds Read Affecting opencv-contrib-python package, versions [,3.3.1.11)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.32% (71st 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-PYTHON-OPENCVCONTRIBPYTHON-1731365
  • published13 Oct 2021
  • disclosed12 Oct 2021
  • creditUnknown

Introduced: 12 Oct 2021

CVE-2017-12598  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade opencv-contrib-python to version 3.3.1.11 or higher.

Overview

opencv-contrib-python is a Wrapper package for OpenCV python bindings.

Affected versions of this package are vulnerable to Out-of-bounds Read via the cv::RBaseStream::readBlock function in modules/imgcodecs/src/bitstrm.cpp when reading an image file by using cv::imread, as demonstrated by the 8-opencv-invalid-read-fread test case.

CVSS Scores

version 3.1