Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. opencv-python
  4. ›
  5. CVE-2019-5064

CVE-2019-5064: Out-of-bounds Write

October 12, 2021

An exploitable heap buffer overflow vulnerability exists in the data structure persistence functionality of OpenCV, 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.

References

  • github.com/advisories/GHSA-q799-q27x-vp7w
  • github.com/opencv/opencv-python/releases/tag/32
  • github.com/opencv/opencv/issues/15857
  • github.com/opencv/opencv/releases/tag/4.2.0
  • nvd.nist.gov/vuln/detail/CVE-2019-5064
  • talosintelligence.com/vulnerability_reports/TALOS-2019-0853
  • www.oracle.com/security-alerts/cpuApr2021.html

Code Behaviors & Features

Detect and mitigate CVE-2019-5064 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 4.1.2.30

Fixed versions

  • 4.2.0.32

Solution

Upgrade to version 4.2.0.32 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-787: Out-of-bounds Write

Source file

pypi/opencv-python/CVE-2019-5064.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:01 +0000.