CVE-2019-5064
HIGH 8.8CVSS 3.1Out-of-bounds Write in OpenCV
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.
- Published
- 3 Jan 2020
- Last modified
- 10 Sep 2026
- Assigned by
- talos-cna@cisco.com
- NVD status
- Modified
- Weakness
- CWE-120CWE-787
- Also known as
- GHSA-q799-q27x-vp7wPYSEC-2026-2802PYSEC-2026-2828PYSEC-2026-2841PYSEC-2026-725
- Sources
- NVDJSONOSV GHSA-q799-q27x-vp7wJSONOSV PYSEC-2026-2802JSONOSV PYSEC-2026-2828JSONOSV PYSEC-2026-2841JSONOSV PYSEC-2026-725JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | talos-cna@cisco.com (Secondary) | CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | opencv | opencvcpe:2.3:a:opencv:opencv:*:*:*:*:*:*:*:* |
>= 4.0.0, < 4.2.0 | 4.2.0 |
| NVD | oracle | application_testing_suitecpe:2.3:a:oracle:application_testing_suite:13.3.0.1:*:*:*:*:*:*:* |
= 13.3.0.1 | |
| NVD | oracle | big_data_spatial_and_graphcpe:2.3:a:oracle:big_data_spatial_and_graph:*:*:*:*:*:*:*:* |
< 2.0 | 2.0 |
| NVD | oracle | enterprise_manager_base_platformcpe:2.3:a:oracle:enterprise_manager_base_platform:13.4.0.0:*:*:*:*:*:*:* |
= 13.4.0.0 | |
| OSV | PyPI | opencv-python | < 4.2.0.32 | 4.2.0.32 |
| OSV | PyPI | opencv-python-headless | < 4.2.0.32 | 4.2.0.32 |
| OSV | PyPI | opencv-contrib-python | < 4.2.0.32 | 4.2.0.32 |
| OSV | PyPI | opencv-contrib-python-headless | < 4.2.0.32 | 4.2.0.32 |
References
- https://github.com/opencv/opencv/issues/15857 · Third Party Advisory, WEB
- https://talosintelligence.com/vulnerability_reports/TALOS-2019-0853 · Exploit, Third Party Advisory, WEB
- https://www.oracle.com//security-alerts/cpujul2021.html · Patch, Third Party Advisory, WEB
- https://www.oracle.com/security-alerts/cpuApr2021.html · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-5064 · ADVISORY
- https://github.com/opencv/opencv-python · PACKAGE
- https://github.com/opencv/opencv-python/releases/tag/32 · WEB
- https://github.com/opencv/opencv/releases/tag/4.2.0 · WEB
- https://pypi.org/project/opencv-contrib-python · PACKAGE
- https://github.com/advisories/GHSA-q799-q27x-vp7w · ADVISORY
- https://pypi.org/project/opencv-python · PACKAGE
- https://pypi.org/project/opencv-python-headless · PACKAGE
- https://pypi.org/project/opencv-contrib-python-headless · PACKAGE
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 3 Jan 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 12 Oct 2021)