cve.bz

CVE-2019-5064 Out-of-bounds Write

8.8 highExploit referenceEPSS 11%Fix available

High (8.8). EPSS 11% estimated probability of exploitation activity in the next 30 days. Fixed in opencv-python 4.2.0.32.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
11% (unchanged from 11% a week ago; 11% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-787 Out-of-bounds Write
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-5064 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-5064?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-5064?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-5064 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
opencv:opencvfrom 4.0.0 before 4.2.0
oracle:application_testing_suite13.3.0.1
oracle:big_data_spatial_and_graphbefore 2.0
oracle:enterprise_manager_base_platform13.4.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-q799-q27x-vp7wPyPIopencv-python<4.2.0.324.2.0.32
GHSA-q799-q27x-vp7wPyPIopencv-python-headless<4.2.0.324.2.0.32
GHSA-q799-q27x-vp7wPyPIopencv-contrib-python<4.2.0.324.2.0.32
GHSA-q799-q27x-vp7wPyPIopencv-contrib-python-headless<4.2.0.324.2.0.32
PYSEC-2026-2802PyPIopencv-contrib-python<4.2.0.324.2.0.32
PYSEC-2026-2828PyPIopencv-python<4.2.0.324.2.0.32
PYSEC-2026-2841PyPIopencv-python-headless<4.2.0.324.2.0.32
PYSEC-2026-725PyPIopencv-contrib-python-headless<4.2.0.324.2.0.32

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14opencv4.2.0+dfsg-3DEBIAN-CVE-2019-5064

From the distributions' data via OSV.dev: the Debian Security Tracker. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw did not affect the versions of OpenCV as shipped with Red Hat Enterprise Linux 6, 7, and 8, as they did not include the vulnerable code, which was introduced in a later version of the library.

Red Hat's mitigation

Avoid loading OpenCV data structures from external untrusted JSON files.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6opencvNot affected
Red Hat Enterprise Linux 7opencvNot affected
Red Hat Enterprise Linux 8opencvNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-5064.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON