CVE-2019-16249: PYSEC-2026-726 - Out-of-bounds Read in OpenCV

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

Out-of-bounds Read 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-16249 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2019-16249 being exploited in the wild.
How severe is CVE-2019-16249?
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.1.2.30; opencv-contrib-python-headless (PyPI) ECOSYSTEM:introduced=0,fixed=4.1.2.30; opencv-python (PyPI) ECOSYSTEM:introduced=0,fixed=4.1.2.30; opencv-python-headless (PyPI) ECOSYSTEM:introduced=0,fixed=4.1.2.30.
Is there a fix for CVE-2019-16249?
Yes. opencv-contrib-python (PyPI): upgrade to 4.1.2.30 or later; opencv-contrib-python-headless (PyPI): upgrade to 4.1.2.30 or later; opencv-python (PyPI): upgrade to 4.1.2.30 or later; opencv-python-headless (PyPI): upgrade to 4.1.2.30 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2019-16249?
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.1.2.30 or later
    pip install "opencv-contrib-python>=4.1.2.30"
  • opencv-contrib-python-headless (PyPI): upgrade to 4.1.2.30 or later
    pip install "opencv-contrib-python-headless>=4.1.2.30"
  • opencv-python (PyPI): upgrade to 4.1.2.30 or later
    pip install "opencv-python>=4.1.2.30"
  • opencv-python-headless (PyPI): upgrade to 4.1.2.30 or later
    pip install "opencv-python-headless>=4.1.2.30"

Affected products

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

Identifiers

  • CVE-2019-16249
  • GHSA-x3rm-644h-67m8
  • PYSEC-2026-2803
  • PYSEC-2026-2833
  • PYSEC-2026-2842
  • PYSEC-2026-726

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