GitHub Advisoryadvisory · PyPI

GHSA-q799-q27x-vp7w Out-of-bounds Write in OpenCV

HIGH Published 2021-10-12 Modified 2021-10-06 Official page ↗
Aliases
CVE-2019-5064
Ecosystem
PyPI
Packages
opencv-python, opencv-python-headless, opencv-contrib-python, opencv-contrib-python-headless
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
CWE-120, CWE-787
Reviewed
2021-10-06

Affected packages

• PyPI opencv-python: < 4.2.0.32 → fixed in 4.2.0.32 • PyPI opencv-python-headless: < 4.2.0.32 → fixed in 4.2.0.32 • PyPI opencv-contrib-python: < 4.2.0.32 → fixed in 4.2.0.32 • PyPI opencv-contrib-python-headless: < 4.2.0.32 → fixed in 4.2.0.32

Description

An exploitable heap buffer overflow vulnerability exists in the data structure persistence functionality of OpenCV, version 4.1.0 (corresponds with OpenCV-Python version 4.1.2.30). A specially crafted JSON file can cause a buffer overflow, resulting in multiple heap corruptions and potentially code execution. An attacker can provide a specially crafted file to trigger this vulnerability.

Related

Alias · CVE (1)

  • CVE-2019-5064 An exploitable heap buffer overflow vulnerability exists in the data structure persistence functionality of OpenCV, before version 4.2.0. vulnerability

Weakness · CWE (2)

  • CWE-120 Buffer Copy without Checking Size of Input weakness
  • CWE-787 Out-of-bounds Write weakness

References