Live threats

All CVEs / Opencv

CVE-2019-5064Opencv

High 8.8 No auth neededHigh EPSS

Priority
69
CVSS 3.1
8.8
EPSS
10.7%
probability of exploitation in 30 days · percentile 97
Auth required
No
Published
Jan 3, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-120, CWE-787
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Opencv.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI opencv-contrib-python < 4.2.0.32 4.2.0.32 pip install "opencv-contrib-python>=4.2.0.32"
PyPI opencv-contrib-python < 4.2.0.32 4.2.0.32 pip install "opencv-contrib-python>=4.2.0.32"
PyPI opencv-contrib-python-headless < 4.2.0.32 4.2.0.32 pip install "opencv-contrib-python-headless>=4.2.0.32"
PyPI opencv-contrib-python-headless < 4.2.0.32 4.2.0.32 pip install "opencv-contrib-python-headless>=4.2.0.32"
PyPI opencv-python < 4.2.0.32 4.2.0.32 pip install "opencv-python>=4.2.0.32"
PyPI opencv-python < 4.2.0.32 4.2.0.32 pip install "opencv-python>=4.2.0.32"
PyPI opencv-python-headless < 4.2.0.32 4.2.0.32 pip install "opencv-python-headless>=4.2.0.32"
PyPI opencv-python-headless < 4.2.0.32 4.2.0.32 pip install "opencv-python-headless>=4.2.0.32"

Per OSV / GitHub Advisories (GHSA-q799-q27x-vp7w, PYSEC-2026-2802, PYSEC-2026-725, PYSEC-2026-2828, PYSEC-2026-2841). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
opencvopencv≥ 4.0.0 < 4.2.0
oracleapplication_testing_suite13.3.0.1
oraclebig_data_spatial_and_graph< 2.0
oracleenterprise_manager_base_platform13.4.0.0

Official sources

References

Links published by the sources. Open them with care.