CVE-2019-5064
HIGH8.8EPSS 2.6%Out-of-bounds Write in OpenCV
Published: 10/12/2021Modified: 4/28/2026
Description
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.
Affected packages (5)
- Debian/opencvfrom 0, < 4.2.0+dfsg-3
- PyPI/opencv-contrib-pythonfrom 0, < 4.2.0.32
- PyPI/opencv-contrib-python-headlessfrom 0, < 4.2.0.32
- PyPI/opencv-pythonfrom 0, < 4.2.0.32
- PyPI/opencv-python-headlessfrom 0, < 4.2.0.32
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
References (9)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2019-5064
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2019-5064
- PATCHhttps://github.com/opencv/opencv-python
- WEBhttps://github.com/opencv/opencv/issues/15857
- WEBhttps://github.com/opencv/opencv-python/releases/tag/32
- WEBhttps://github.com/opencv/opencv/releases/tag/4.2.0
- WEBhttps://talosintelligence.com/vulnerability_reports/TALOS-2019-0853
- WEBhttps://www.oracle.com/security-alerts/cpuApr2021.html
- WEBhttps://www.oracle.com//security-alerts/cpujul2021.html