CVE-2019-5064Opencv
High 8.8 No auth neededHigh EPSS
Follow: this CVE · Opencv · Opencv We alert you by email or Slack (account required).
- Priority
- 69
- CVSS 3.1
- 8.8
- EPSS
- 10.7% probability of exploitation in 30 days · percentile 97
- Auth required
- No
- Published
- Jan 3, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Opencv.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | opencv-contrib-python |
< 4.2.0.32 |
4.2.0.32 |
pip install "opencv-contrib-python>=4.2.0.32" |
| PyPI | opencv-contrib-python |
< 4.2.0.32 |
4.2.0.32 |
pip install "opencv-contrib-python>=4.2.0.32" |
| PyPI | opencv-contrib-python-headless |
< 4.2.0.32 |
4.2.0.32 |
pip install "opencv-contrib-python-headless>=4.2.0.32" |
| PyPI | opencv-contrib-python-headless |
< 4.2.0.32 |
4.2.0.32 |
pip install "opencv-contrib-python-headless>=4.2.0.32" |
| PyPI | opencv-python |
< 4.2.0.32 |
4.2.0.32 |
pip install "opencv-python>=4.2.0.32" |
| PyPI | opencv-python |
< 4.2.0.32 |
4.2.0.32 |
pip install "opencv-python>=4.2.0.32" |
| PyPI | opencv-python-headless |
< 4.2.0.32 |
4.2.0.32 |
pip install "opencv-python-headless>=4.2.0.32" |
| PyPI | opencv-python-headless |
< 4.2.0.32 |
4.2.0.32 |
pip install "opencv-python-headless>=4.2.0.32" |
Per OSV / GitHub Advisories (GHSA-q799-q27x-vp7w, PYSEC-2026-2802, PYSEC-2026-725, PYSEC-2026-2828, PYSEC-2026-2841). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| opencv | opencv | ≥ 4.0.0 < 4.2.0 |
| oracle | application_testing_suite | 13.3.0.1 |
| oracle | big_data_spatial_and_graph | < 2.0 |
| oracle | enterprise_manager_base_platform | 13.4.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- talosintelligence.com Exploit Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.oracle.com Patch Third Party Advisory