opencv: Heap buffer overflow in persistence_json.cpp while parsing crafted JSON file
Published Jan 3, 2020
8.8
HIGHCVSS 3.1
EPSS 10.70%
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.
Affected products
- Vendor n/a Product OpenCV Defaultn/a
- Version OpenCV 4.1.0StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | OpenCV | n/a |
|
Configuration 2
- 13.3.0.1
- < 2.0
- 13.4.0.0
No data.
Red Hat Enterprise Linux 6
opencv
Not affected
Red Hat Enterprise Linux 7
opencv
Not affected
Red Hat Enterprise Linux 8
opencv
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | opencv | Not affected | n/a |
| Red Hat Enterprise Linux 7 | opencv | Not affected | n/a |
| Red Hat Enterprise Linux 8 | opencv | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This flaw did not affect the versions of OpenCV as shipped with Red Hat Enterprise Linux 6, 7, and 8, as they did not include the vulnerable code, which was introduced in a later version of the library.
Red Hat mitigation
Avoid loading OpenCV data structures from external untrusted JSON files.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (19 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 10.70% (0.10704) | 95.69th | v5 (v2026.06.15) |
| Jun 15, 2026 | 10.62% (0.10618) | 95.20th | v5 (v2026.06.15) |
| Nov 18, 2025 | 3.59% (0.03590) | 86.57th | v4 (v2025.03.14) |
| Jun 27, 2025 | 2.49% (0.02492) | 84.63th | v4 (v2025.03.14) |
| Mar 30, 2025 | 1.01% (0.01009) | 75.07th | v4 (v2025.03.14) |
| Mar 29, 2025 | 3.14% (0.03135) | 78.00th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.01% (0.01009) | 75.53th | v4 (v2025.03.14) |
| Dec 17, 2024 | 0.69% (0.00690) | 79.96th | v3 (v2023.03.01) |
| Dec 12, 2024 | 3.57% (0.03569) | 91.97th | v3 (v2023.03.01) |
| Mar 7, 2023 | 3.18% (0.03184) | 89.64th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.51% (0.02509) | 81.86th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.51% (0.02509) | 80.08th | v2 (v2022.01.01) |
| Feb 4, 2022 | 23.33% (0.23331) | 94.71th | v2 (v2022.01.01) |
| Feb 3, 2022 | 7.67% (0.07673) | 84.22th | v1 |
| Jan 6, 2022 | 7.67% (0.07673) | 84.07th | v1 |
| Sep 1, 2021 | 1.82% (0.01819) | 74.60th | v1 |
| Jul 21, 2021 | 1.82% (0.01819) | 0.00th | v1 |
| Jun 15, 2021 | 1.46% (0.01458) | 0.00th | v1 |
| Apr 14, 2021 | 1.09% (0.01095) | 0.00th | v1 |
References (11)
- https://access.redhat.com/security/cve/CVE-2019-5064 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1790059 Issue Tracking
- https://github.com/advisories/GHSA-q799-q27x-vp7w Advisory
- https://github.com/opencv/opencv-python/releases/tag/32
- https://github.com/opencv/opencv/issues/15857 x_refsource_MISCThird Party Advisory
- https://github.com/opencv/opencv/releases/tag/4.2.0
- https://nvd.nist.gov/vuln/detail/CVE-2019-5064
- https://talosintelligence.com/vulnerability_reports/TALOS-2019-0853 x_refsource_MISCExploitThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2019-5064
- https://www.oracle.com//security-alerts/cpujul2021.html x_refsource_MISCPatchThird Party Advisory
- https://www.oracle.com/security-alerts/cpuApr2021.html x_refsource_MISCPatchThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2019-5064 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1790059 | Issue Tracking | |
| https://github.com/advisories/GHSA-q799-q27x-vp7w | Advisory | |
| https://github.com/opencv/opencv-python/releases/tag/32 | ||
| https://github.com/opencv/opencv/issues/15857 | x_refsource_MISCThird Party Advisory | |
| https://github.com/opencv/opencv/releases/tag/4.2.0 | ||
| https://nvd.nist.gov/vuln/detail/CVE-2019-5064 | ||
| https://talosintelligence.com/vulnerability_reports/TALOS-2019-0853 | x_refsource_MISCExploitThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2019-5064 | ||
| https://www.oracle.com//security-alerts/cpujul2021.html | x_refsource_MISCPatchThird Party Advisory | |
| https://www.oracle.com/security-alerts/cpuApr2021.html | x_refsource_MISCPatchThird Party Advisory |
Change history (0)
No recorded changes yet.