opencv: Heap buffer overflow in persistence_xml.cpp while parsing crafted XML file
Published Jan 3, 2020
8.8
HIGHCVSS 3.1
EPSS 21.11%
Description
An exploitable heap buffer overflow vulnerability exists in the data structure persistence functionality of OpenCV 4.1.0. A specially crafted XML file can cause a buffer overflow, resulting in multiple heap corruptions and potential 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 XML 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 3, 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 (23 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 21.11% (0.21108) | 97.52th | v5 (v2026.06.15) |
| Jun 15, 2026 | 20.95% (0.20947) | 97.24th | v5 (v2026.06.15) |
| Nov 5, 2025 | 5.48% (0.05482) | 89.75th | v4 (v2025.03.14) |
| Jul 22, 2025 | 6.68% (0.06676) | 90.79th | v4 (v2025.03.14) |
| Mar 30, 2025 | 5.16% (0.05158) | 88.90th | v4 (v2025.03.14) |
| Mar 29, 2025 | 11.41% (0.11414) | 89.26th | v4 (v2025.03.14) |
| Mar 17, 2025 | 5.16% (0.05158) | 89.15th | v4 (v2025.03.14) |
| Dec 17, 2024 | 1.57% (0.01568) | 86.89th | v3 (v2023.03.01) |
| Nov 24, 2024 | 11.88% (0.11875) | 95.54th | v3 (v2023.03.01) |
| Dec 27, 2023 | 13.69% (0.13687) | 95.11th | v3 (v2023.03.01) |
| Nov 24, 2023 | 12.17% (0.12171) | 94.83th | v3 (v2023.03.01) |
| May 23, 2023 | 14.41% (0.14414) | 94.90th | v3 (v2023.03.01) |
| May 8, 2023 | 14.05% (0.14048) | 94.81th | v3 (v2023.03.01) |
| Mar 7, 2023 | 11.77% (0.11770) | 94.36th | 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 | 18.52% (0.18516) | 93.58th | v2 (v2022.01.01) |
| Feb 3, 2022 | 6.22% (0.06225) | 82.33th | v1 |
| Jan 6, 2022 | 6.22% (0.06225) | 82.16th | v1 |
| Sep 1, 2021 | 1.46% (0.01458) | 72.29th | v1 |
| Jul 21, 2021 | 1.46% (0.01458) | 0.00th | v1 |
| Jun 15, 2021 | 1.09% (0.01095) | 0.00th | v1 |
| Apr 14, 2021 | 0.73% (0.00731) | 0.00th | v1 |
References (10)
- https://access.redhat.com/security/cve/CVE-2019-5063 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1790055 Issue Tracking
- https://github.com/advisories/GHSA-m6vm-8g8v-xfjh Advisory
- https://github.com/opencv/opencv-python/releases/tag/25
- https://github.com/opencv/opencv/issues/16951
- https://nvd.nist.gov/vuln/detail/CVE-2019-5063
- https://talosintelligence.com/vulnerability_reports/TALOS-2019-0852 x_refsource_MISCExploitThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2019-5063
- 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-5063 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1790055 | Issue Tracking | |
| https://github.com/advisories/GHSA-m6vm-8g8v-xfjh | Advisory | |
| https://github.com/opencv/opencv-python/releases/tag/25 | ||
| https://github.com/opencv/opencv/issues/16951 | ||
| https://nvd.nist.gov/vuln/detail/CVE-2019-5063 | ||
| https://talosintelligence.com/vulnerability_reports/TALOS-2019-0852 | x_refsource_MISCExploitThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2019-5063 | ||
| 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.