High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2019-5064
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:20 UTC · Revision 1
Source evidence
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.
osv:CVE-2019-5064
Complete source record
{
"id": "0d12957bfc425ba5c72909decacf7305a7154fa9217990cf8f8862a346328f55",
"url": "https://osv.dev/vulnerability/CVE-2019-5064",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2019-5064",
"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.",
"evidence": "osv:CVE-2019-5064",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2019-5064",
"aliases": [
"CVE-2019-5064",
"GHSA-q799-q27x-vp7w",
"PYSEC-2026-2802",
"PYSEC-2026-2828",
"PYSEC-2026-2841",
"PYSEC-2026-725"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/opencv/opencv",
"type": "GIT",
"events": [
{
"introduced": "e6d9486a6cb3379a0eeb59bd405bea3125ea364d"
},
{
"fixed": "4de7015cfd9462cea82eac35007e541d84e23a27"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:opencv:opencv:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.2.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-5064.json",
"vanir_signatures": [
{
"id": "CVE-2019-5064-3d0f94f7",
"digest": {
"length": 56,
"function_hash": "42391463951113352527122832114488237590"
},
"source": "https://github.com/opencv/opencv/commit/4de7015cfd9462cea82eac35007e541d84e23a27",
"target": {
"file": "modules/dnn/src/op_inf_engine.cpp",
"function": "getCore"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2019-5064-cde920ea",
"digest": {
"threshold": 0.9,
"line_hashes": [
"317101903585342046209676890270866796176",
"4899819219694852016431700102245338623",
"145431787435142965762058253718854780324",
"327709608047084872203543569286410968244",
"150284813203258107715379774141947886599",
"8203734128214708468098549216124558848",
"6684646567636119877889396109033940069",
"82837593067641140679090056088734863650"
]
},
"source": "https://github.com/opencv/opencv/commit/4de7015cfd9462cea82eac35007e541d84e23a27",
"target": {
"file": "modules/dnn/src/op_inf_engine.cpp"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-24T14:13:10Z"
}
},
{
"ranges": [
{
"repo": "https://github.com/opencv/opencv_contrib",
"type": "GIT",
"events": [
{
"introduced": "d511587cf0bc782022db215d20d960afb2e9efe2"
},
{
"fixed": "65abc7090dedc84bbedec4dfd143f0340e52114f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:opencv:opencv:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.2.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"4.1.2",
"4.1.1",
"4.1.0",
"4.0.1",
"4.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-5064.json"
}
}
],
"modified": "2026-10-24T14:13:10.852667274Z",
"provider": "osv",
"references": [
"https://github.com/opencv/opencv/issues/15857",
"https://www.oracle.com//security-alerts/cpujul2021.html",
"https://www.oracle.com/security-alerts/cpuApr2021.html",
"https://talosintelligence.com/vulnerability_reports/TALOS-2019-0853"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:oracle:big_data_spatial_and_graph:*:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:big_data_spatial_and_graph",
"extracted_events": [
{
"range": [
{
"fixed": "2.0"
}
],
"source": "CPE_RANGE"
}
]
},
{
"cpes": [
"cpe:2.3:a:oracle:application_testing_suite:13.3.0.1:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:application_testing_suite",
"extracted_events": [
{
"range": [
{
"introduced": "13.3.0.1"
},
{
"last_affected": "13.3.0.1"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:a:oracle:enterprise_manager_base_platform:13.4.0.0:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:enterprise_manager_base_platform",
"extracted_events": [
{
"range": [
{
"introduced": "13.4.0.0"
},
{
"last_affected": "13.4.0.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2019-5064",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 443423,
"published_at": "2020-01-03T17:15:12.257+00:00"
}