CVE-2019-5064
Out-of-bounds Write in OpenCV
Reported by talos · Published January 3, 2020
opencv-python-headless is fixed in 4.2.0.32 and 4.1.2.30 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| opencv-python-headless | PyPI | 4.2.0.32, 4.1.2.30 |
| opencv-python | PyPI | 4.2.0.32, 4.1.2.30 |
| opencv-contrib-python-headless | PyPI | 4.2.0.32, 4.1.2.30 |
| opencv-contrib-python | PyPI | 4.2.0.32 |
| opencv-opencv-contrib-python-headless | PyPI | 4.1.2.30 |
| big_data_spatial_and_graph | oracle | 2.0 |
| opencv | Ubuntu:20.04:LTS | 4.2.0+dfsg-5 |
| opencv | opencv | 4.2.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | OpenCV | OpenCV 4.1.0 |
| PyPI | opencv-python-headless | 0 |
| PyPI | opencv-contrib-python-headless | 0 |
| PyPI | opencv-contrib-python | 0 |
| PyPI | opencv-opencv-contrib-python-headless | 0 |
| PyPI | opencv-python | 0 |
| n/a | OpenCV | 4.1.0 |
Timeline
- Jan 3, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Nov 8, 2023 CVE Updated
- Mar 9, 2026 Security Advisory
- Sep 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-5064
vulnetix vdb fixes CVE-2019-5064
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-5064/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2019-5064 advisory
- https://github.com/opencv/opencv-python/releases/tag/32 url
- https://github.com/opencv/opencv/releases/tag/4.2.0 url
- https://github.com/advisories/GHSA-q799-q27x-vp7w advisory