🛡️ CVE-2019-5064 — opencv-contrib-python
Description
Out-of-bounds Write in OpenCV
An 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.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.
Weakness class
CVE-2019-5064 is classified as CWE-120: Classic Buffer Overflow. Input is copied into a fixed-size buffer without a length check, overwriting memory past the end of it.
Affected software
CVE-2019-5064 is recorded against 4 packages.
- opencv-contrib-python (fixed in 4.2.0.32)
- opencv-contrib-python-headless (fixed in 4.2.0.32)
- opencv-python (fixed in 4.2.0.32)
- opencv-python-headless (fixed in 4.2.0.32)
Timeline and source
Published on 12 October 2021 and last revised on 13 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Package)
github.com (Web)
github.com (Web)
talosintelligence.com (Web)
www.oracle.com (Web)
www.oracle.com (Web)
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| 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 |
References
Similar Threats
- High CVE-2016-1516
- Unknown CVE-2016-1517
- High CVE-2017-1000450
- High CVE-2017-12597
- High CVE-2017-12598
More CVE 2019 advisories
Browse all of CVE 2019 in the advisory index.
Site Security Check
Is opencv-contrib-python part of your stack?
CVE-2019-5064 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.