CVE-2018-5268: PYSEC-2026-705 - Out-of-bounds Write in OpenCV.

CVE-2018-5268 · Severity: low · CVSS 3 · Published 2026-07-02

Out-of-bounds Write in OpenCV.

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

Quick answers

Is CVE-2018-5268 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2018-5268 being exploited in the wild.
How severe is CVE-2018-5268?
Low severity, with a CVSS score of 3, published 2 July 2026.
Which products and versions are affected?
opencv-contrib-python (PyPI) ECOSYSTEM:introduced=0,fixed=3.4.1.15; opencv-python (PyPI) ECOSYSTEM:introduced=0,fixed=3.4.1.15.
Is there a fix for CVE-2018-5268?
Yes. opencv-contrib-python (PyPI): upgrade to 3.4.1.15 or later; opencv-python (PyPI): upgrade to 3.4.1.15 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2018-5268?
Check whether you run opencv-contrib-python (PyPI) or opencv-python (PyPI) 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 3.4.1.15 or later
    pip install "opencv-contrib-python>=3.4.1.15"
  • opencv-python (PyPI): upgrade to 3.4.1.15 or later
    pip install "opencv-python>=3.4.1.15"

Affected products

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

Identifiers

  • CVE-2018-5268
  • GHSA-9g8h-pjm4-q92p
  • PYSEC-2026-2814
  • PYSEC-2026-705

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