{"id":"CVE-2019-5064","aliases":["GHSA-q799-q27x-vp7w","PYSEC-2026-2802","PYSEC-2026-2828","PYSEC-2026-2841","PYSEC-2026-725"],"title":"Out-of-bounds Write in OpenCV","summary":"Out-of-bounds Write in OpenCV","severity":"high","cvss":8.8,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","vendor":"opencv-python","product":"opencv-python","ecosystem":"pip","affected":["opencv-python < 4.2.0.32","opencv-python-headless < 4.2.0.32","opencv-contrib-python < 4.2.0.32","opencv-contrib-python-headless < 4.2.0.32"],"patched":["opencv-python 4.2.0.32","opencv-python-headless 4.2.0.32","opencv-contrib-python 4.2.0.32","opencv-contrib-python-headless 4.2.0.32"],"published":"2021-10-12","updated":"2026-09-10","sourceUpdated":"2026-09-10T03:49:09.348814739Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-q799-q27x-vp7w","references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-5064"},{"url":"https://github.com/opencv/opencv/issues/15857"},{"url":"https://github.com/opencv/opencv-python"},{"url":"https://github.com/opencv/opencv-python/releases/tag/32"},{"url":"https://github.com/opencv/opencv/releases/tag/4.2.0"},{"url":"https://talosintelligence.com/vulnerability_reports/TALOS-2019-0853"},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html"},{"url":"https://www.oracle.com/security-alerts/cpuApr2021.html"}],"tags":["osv","pip"],"epss":0.10704,"epssPercentile":0.9568,"ingestedAt":"2026-07-08T18:25:52.119Z","slug":"CVE-2019-5064","body":"## Overview\n\nAn exploitable heap buffer overflow vulnerability exists in the data structure persistence functionality of OpenCV, version 4.1.0 (corresponds with OpenCV-Python version 4.1.2.30). 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.\n\n## Affected packages\n\n- `opencv-python < 4.2.0.32`\n- `opencv-python-headless < 4.2.0.32`\n- `opencv-contrib-python < 4.2.0.32`\n- `opencv-contrib-python-headless < 4.2.0.32`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `opencv-python 4.2.0.32`\n- `opencv-python-headless 4.2.0.32`\n- `opencv-contrib-python 4.2.0.32`\n- `opencv-contrib-python-headless 4.2.0.32`","depth":"twilight","depthScore":51,"depthScoreParts":{"impact":48.4,"likelihood":2.1,"exploitation":0,"ransomware":0},"changes":[]}