Buffer Overflow Affecting opencv-python-headless package, versions [4.0.0.21,4.2.0.32)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
5.48% (90th 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 Learn

Learn about Buffer Overflow vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-OPENCVPYTHONHEADLESS-1731335
  • published13 Oct 2021
  • disclosed12 Oct 2021
  • creditUnknown

Introduced: 12 Oct 2021

CVE-2019-5063  (opens in a new tab)
CWE-119  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade opencv-python-headless to version 4.2.0.32 or higher.

Overview

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

Affected versions of this package are vulnerable to Buffer Overflow via the data structure persistence functionality of OpenCV. A specially crafted XML file can cause a buffer overflow, resulting in multiple heap corruptions and potential code execution. An attacker can provide a specially crafted file to trigger this vulnerability.

CVSS Base Scores

version 3.1