Skip to content
Fencer Vulns
high 8.8

CVE-2019-5064 in the critical feed json

Out-of-bounds Write in OpenCV

published 2020-01-03 6 y ago modified 2026-09-10 1 mo ago also GHSA-q799-q27x-vp7w , PYSEC-2026-2802 , PYSEC-2026-2828 , PYSEC-2026-2841 , PYSEC-2026-725 , EUVD-2021-2245

cvss
8.8
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
10.7%
EPSS 10.7% chance of exploitation in 30 days, percentile 95%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi opencv-python 4.2.0.32
  • pypi opencv-python-headless 4.2.0.32
  • pypi opencv-contrib-python 4.2.0.32
  • pypi opencv-contrib-python-headless 4.2.0.32
  • opencv opencv 4.2.0
  • oracle big_data_spatial_and_graph 2.0
  • opencv Debian 14, Debian 13, Debian 12 4.2.0+dfsg-3

debian advisories DEBIAN-CVE-2019-5064

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2019-5064 updated cvss 8.8

opencv: Heap buffer overflow in persistence_json.cpp while parsing crafted JSON file

  • Red Hat Enterprise Linux 6 opencv, opencv-python Red Hat Enterprise Linux 7 opencv, opencv-core, opencv-python Red Hat Enterprise Linux 8 opencv, opencv-core, opencv-contrib, python3-opencv
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

10.70% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • talosintelligence.com https://talosintelligence.com/vulnerability_reports/TALOS-2019-0853 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.0 8.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P
OSV 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
GitHub 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi opencv-python
<4.2.0.32
4.2.0.32
pypi opencv-python-headless
<4.2.0.32
4.2.0.32
pypi opencv-contrib-python
<4.2.0.32
4.2.0.32
pypi opencv-contrib-python-headless
<4.2.0.32
4.2.0.32

Affected products

  • n/a OpenCV

Classification

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

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.