CVE-2019-5064: opencv Classic Buffer Overflow
Vulnerability summary
CVE-2019-5064 is a high (CVSS 8.8) Classic Buffer Overflow vulnerability in opencv. EPSS estimates a 10.70% chance of exploitation in the next 30 days, higher than 95.7% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 03-01-2020PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 5 sources · 3 versions- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
10.70%
Chance of exploitation in the next 30 days
Percentile
96%
Versus all other CVEs
30-day change
0.00 pp
From 10.70% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (talosintelligence.com)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-120Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
PyPI4 products
- opencv-contrib-python< 4.2.0.32
- opencv-contrib-python-headless< 4.2.0.32
- opencv-python< 4.2.0.32
- opencv-python-headless< 4.2.0.32
Oracle3 products
- application_testing_suite13.3.0.1
- big_data_spatial_and_graph< 2.0
- enterprise_manager_base_platform13.4.0.0
Debian1 product
- opencv< 4.2.0+dfsg-3
Opencv1 product
- opencv≥ 4.0.0, < 4.2.0
Ubuntu1 product
- opencv< 4.2.0+dfsg-5 | < 4.5.4+dfsg-9ubuntu4
5 vendors · 10 products
References
16 links- talosintelligence.com/vulnerability_reports/TALOS-2019-0853X Refsource MISCWEBREPORTExploitThird Party Advisory