Every CVE Search/ Get API key

CVE-2019-5064

Out-of-bounds Write in OpenCV

8.8 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

10.7%Up 9.6 points since Apr 14, 2021
90%50%10%1%

What each source reports

CVE List Score used 8.8

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.

Record
CVE-2019-5064
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-120
Updated
2026-11-02
EUVDEUVD-2021-2245 8.8

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.

Record
EUVD-2021-2245
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-03
GitHub AdvisoriesGHSA-q799-q27x-vp7w 8.8

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.

Record
GHSA-q799-q27x-vp7w
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-120, CWE-787
Updated
2026-11-02
NVD 8.8

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.

Record
CVE-2019-5064
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-120, CWE-787
Updated
2026-11-02
OSV 8.8

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.

Record
CVE-2019-5064
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2019-5064 8.8

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.

Record
DEBIAN-CVE-2019-5064
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 6 moreShow less
OSVGHSA-q799-q27x-vp7w 8.8

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.

Record
GHSA-q799-q27x-vp7w
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-120, CWE-787
Updated
2026-11-02
OSVPYSEC-2026-2802 8.8

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.

Record
PYSEC-2026-2802
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVPYSEC-2026-2828 8.8

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.

Record
PYSEC-2026-2828
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVPYSEC-2026-2841 8.8

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.

Record
PYSEC-2026-2841
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVPYSEC-2026-725 8.8

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.

Record
PYSEC-2026-725
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2019-5064 8.8

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.

Record
UBUNTU-CVE-2019-5064
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
opencv-python
PyPI
through 4.1.2.30
4.2.0.32
opencv-python-headless
PyPI
through 4.1.2.30
4.2.0.32
opencv-contrib-python
PyPI
through 4.1.2.30
4.2.0.32
opencv-contrib-python-headless
PyPI
through 4.1.2.30
4.2.0.32
opencv
Debian:12
before 4.2.0+dfsg-3
4.2.0+dfsg-3
opencv
Debian:13
before 4.2.0+dfsg-3
4.2.0+dfsg-3
opencv
Debian:14
before 4.2.0+dfsg-3
4.2.0+dfsg-3
opencv-python
PyPI
before 4.2.0.32, plus listed versions
3.4.0.143.4.1.153.4.10.353.4.10.373.4.11.39
Show 27 moreShow less
3.4.11.413.4.11.433.4.11.453.4.13.473.4.14.513.4.14.533.4.15.553.4.16.573.4.16.593.4.17.613.4.17.633.4.18.653.4.2.173.4.3.183.4.4.193.4.5.203.4.6.273.4.7.283.4.8.293.4.9.313.4.9.334.0.0.214.0.1.234.0.1.244.1.0.254.1.1.264.1.2.30
4.2.0.32
opencv-python-headless
PyPI
before 4.2.0.32, plus listed versions
3.4.10.373.4.11.393.4.11.413.4.11.433.4.11.45
Show 21 moreShow less
3.4.13.473.4.14.513.4.14.533.4.15.553.4.16.573.4.16.593.4.17.613.4.17.633.4.18.653.4.3.183.4.4.193.4.5.203.4.6.273.4.7.283.4.8.293.4.9.334.0.0.214.0.1.244.1.0.254.1.1.264.1.2.30
4.2.0.32
opencv-contrib-python
PyPI
before 4.2.0.32, plus listed versions
3.4.10.353.4.10.373.4.11.393.4.11.413.4.11.43
Show 25 moreShow less
3.4.11.453.4.13.473.4.14.513.4.14.533.4.15.553.4.16.573.4.16.593.4.17.613.4.17.633.4.18.653.4.2.173.4.3.183.4.4.193.4.5.203.4.6.273.4.7.283.4.8.293.4.9.313.4.9.334.0.0.214.0.1.234.0.1.244.1.0.254.1.1.264.1.2.30
4.2.0.32
opencv-contrib-python-headless
PyPI
before 4.2.0.32, plus listed versions
3.4.0.143.4.10.373.4.11.413.4.11.433.4.11.45
Show 23 moreShow less
3.4.13.473.4.14.513.4.14.533.4.15.553.4.16.573.4.16.593.4.17.613.4.17.633.4.18.653.4.2.173.4.3.183.4.4.193.4.5.203.4.6.273.4.7.283.4.8.293.4.9.334.0.0.214.0.1.234.0.1.244.1.0.254.1.1.264.1.2.30
4.2.0.32
opencv-python
PyPI
before 4.2.0.32, plus listed versions
3.4.0.143.4.1.153.4.10.353.4.10.373.4.11.39
Show 28 moreShow less
3.4.11.413.4.11.433.4.11.453.4.13.473.4.14.513.4.14.533.4.15.553.4.16.573.4.16.593.4.17.613.4.17.633.4.18.653.4.2.163.4.2.173.4.3.183.4.4.193.4.5.203.4.6.273.4.7.283.4.8.293.4.9.313.4.9.334.0.0.214.0.1.234.0.1.244.1.0.254.1.1.264.1.2.30
4.2.0.32
opencv-contrib-python-headless
PyPI
before 4.2.0.32, plus listed versions
3.4.0.143.4.1.153.4.10.373.4.11.393.4.11.41
Show 25 moreShow less
3.4.11.433.4.11.453.4.13.473.4.14.513.4.14.533.4.15.553.4.16.573.4.16.593.4.17.613.4.17.633.4.18.653.4.2.173.4.3.183.4.4.193.4.5.203.4.6.273.4.7.283.4.8.293.4.9.334.0.0.214.0.1.234.0.1.244.1.0.254.1.1.264.1.2.30
4.2.0.32

History

History
RecordedChangedSources
affected
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2019-5064 is a high vulnerability (CVSS 8.8) in Opencv, published January 3, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 10.7%, the 95th percentile. Fixed in opencv-python 4.2.0.32.

References

Show 10 moreShow less
MoveEnter Open