Buffer Overflow Affecting opencv-python Open this link in a new tab package, versions [,3.3.1.11)


0.0
high
  • Attack Complexity

    Low

  • User Interaction

    Required

  • Confidentiality

    High

  • Integrity

    High

  • Availability

    High

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-id

    SNYK-PYTHON-OPENCVPYTHON-1731352

  • published

    13 Oct 2021

  • disclosed

    12 Oct 2021

  • credit

    Unknown

How to fix?

Upgrade opencv-python to version 3.3.1.11 or higher.

Overview

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

Affected versions of this package are vulnerable to Buffer Overflow via the cv::BmpDecoder::readData function in modules/imgcodecs/src/grfmt_bmp.cpp when reading an image file by using cv::imread, as demonstrated by the 4-buf-overflow-readData-memcpy test case.

References