Out-of-bounds Write Affecting opencv/opencv package, versions [,3.3.1)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.7% (81st 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-2369594
  • published26 Jan 2022
  • disclosed15 Aug 2017
  • creditUnknown

Introduced: 15 Aug 2017

CVE-2017-12862  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade opencv/opencv to version 3.3.1 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write. In modules/imgcodecs/src/grfmt_pxm.cpp, the length of buffer AutoBuffer _src is small than expected, which will cause copy buffer overflow later. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 and earlier.

References

CVSS Scores

version 3.1