CVE-2019-5064: PYSEC-2026-725 - Out-of-bounds Write in OpenCV

CVE-2019-5064 · Severity: low · CVSS 3.1 · Published 2026-07-02

Out-of-bounds Write in OpenCV

Technologies: opencv-contrib-python (PyPI), opencv-contrib-python-headless (PyPI), opencv-python (PyPI), opencv-python-headless (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2019-5064 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2019-5064 being exploited in the wild.
How severe is CVE-2019-5064?
Low severity, with a CVSS score of 3.1, published 2 July 2026.
Which products and versions are affected?
opencv-contrib-python (PyPI) ECOSYSTEM:introduced=0,fixed=4.2.0.32; opencv-contrib-python-headless (PyPI) ECOSYSTEM:introduced=0,fixed=4.2.0.32; opencv-python (PyPI) ECOSYSTEM:introduced=0,fixed=4.2.0.32; opencv-python-headless (PyPI) ECOSYSTEM:introduced=0,fixed=4.2.0.32.
Is there a fix for CVE-2019-5064?
Yes. opencv-contrib-python (PyPI): upgrade to 4.2.0.32 or later; opencv-contrib-python-headless (PyPI): upgrade to 4.2.0.32 or later; opencv-python (PyPI): upgrade to 4.2.0.32 or later; opencv-python-headless (PyPI): upgrade to 4.2.0.32 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2019-5064?
Check whether you run opencv-contrib-python (PyPI), opencv-contrib-python-headless (PyPI), opencv-python (PyPI) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • opencv-contrib-python (PyPI): upgrade to 4.2.0.32 or later
    pip install "opencv-contrib-python>=4.2.0.32"
  • opencv-contrib-python-headless (PyPI): upgrade to 4.2.0.32 or later
    pip install "opencv-contrib-python-headless>=4.2.0.32"
  • opencv-python (PyPI): upgrade to 4.2.0.32 or later
    pip install "opencv-python>=4.2.0.32"
  • opencv-python-headless (PyPI): upgrade to 4.2.0.32 or later
    pip install "opencv-python-headless>=4.2.0.32"

Affected products

  • opencv-contrib-python (PyPI) ECOSYSTEM:introduced=0,fixed=4.2.0.32
  • opencv-contrib-python-headless (PyPI) ECOSYSTEM:introduced=0,fixed=4.2.0.32
  • opencv-python (PyPI) ECOSYSTEM:introduced=0,fixed=4.2.0.32
  • opencv-python-headless (PyPI) ECOSYSTEM:introduced=0,fixed=4.2.0.32

Identifiers

  • CVE-2019-5064
  • GHSA-q799-q27x-vp7w
  • PYSEC-2026-2802
  • PYSEC-2026-2828
  • PYSEC-2026-2841
  • PYSEC-2026-725

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.