Buffer Overflow Affecting opencv package, versions [,3.4.12)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.69% (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-CONAN-OPENCV-10077835
  • published8 May 2025
  • disclosed7 Aug 2017
  • creditUnknown

Introduced: 7 Aug 2017

CVE-2017-12601  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade opencv to version 3.4.12 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overflow. OpenCV (Open Source Computer Vision Library) through 3.3 has a buffer overflow in 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.

CVSS Base Scores

version 3.1