{"id":"CVE-2019-5064","published":"2020-01-03T16:57:39Z","modified":"2024-08-04T19:47:55Z","title":"An exploitable heap buffer overflow vulnerability exists in the data structure persistence functionality of OpenCV…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.10704,"percentile":0.95926,"provenance":"source"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"references":[{"url":"https://www.oracle.com/security-alerts/cpuApr2021.html","tags":["x_refsource_MISC"]},{"url":"https://talosintelligence.com/vulnerability_reports/TALOS-2019-0853","tags":["x_refsource_MISC"]},{"url":"https://github.com/opencv/opencv/issues/15857","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["x_refsource_MISC"]}],"priority":{"score":25.3,"factors":[{"name":"EPSS percentile","points":19.19},{"name":"CVSS severity","points":6.16}]},"affectedVersions":[{"vendor":"n/a","product":"OpenCV","versions":["OpenCV 4.1.0"]}],"affected":[{"ecosystem":"PyPI","package":"opencv-python","vulnerableRanges":["<4.2.0.32"],"patched":["4.2.0.32"],"from":["GHSA-q799-q27x-vp7w","PYSEC-2026-2828"],"provenance":"source"},{"ecosystem":"PyPI","package":"opencv-python-headless","vulnerableRanges":["<4.2.0.32"],"patched":["4.2.0.32"],"from":["GHSA-q799-q27x-vp7w","PYSEC-2026-2841"],"provenance":"source"},{"ecosystem":"PyPI","package":"opencv-contrib-python","vulnerableRanges":["<4.2.0.32"],"patched":["4.2.0.32"],"from":["GHSA-q799-q27x-vp7w","PYSEC-2026-2802"],"provenance":"source"},{"ecosystem":"PyPI","package":"opencv-contrib-python-headless","vulnerableRanges":["<4.2.0.32"],"patched":["4.2.0.32"],"from":["GHSA-q799-q27x-vp7w","PYSEC-2026-725"],"provenance":"source"}],"summary":{"text":"The heap buffer overflow lives in the data structure persistence functionality of OpenCV, in releases before 4.2.0. A specially crafted JSON file processed by that component can trigger the overflow, causing heap corruption that may lead to code execution, and an attacker needs only to supply the malicious file, with a user interaction required to get it processed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:24:01Z"},"euvd":{"id":"EUVD-2021-2245","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-14493","published":"2019-08-01","fixed":"4.1.1.26","kev":false},{"cve":"CVE-2019-15939","published":"2019-09-05","fixed":"4.1.1.26","kev":false},{"cve":"CVE-2019-16249","published":"2019-09-11","fixed":"4.1.2.30","kev":false,"link":{"from":"CVE-2019-16249","to":"CVE-2019-5064","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:opencv-python","fromFixed":"4.1.2.30","toFixed":"4.2.0.32","daysApart":114},{"kind":"version-step","provenance":"source","package":"PyPI:opencv-contrib-python","fromFixed":"4.1.2.30","toFixed":"4.2.0.32","daysApart":114}]}},{"cve":"CVE-2019-5064","published":"2020-01-03","fixed":"4.2.0.32","kev":false}],"package":"PyPI:opencv-python"}}