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

Source: https://junglewise.ai/threats/cve-2018-5268-out-of-bounds-write-in-opencv  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-02  
License: CC BY 4.0 with a link back

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

Out-of-bounds Write in OpenCV.

Technologies: [opencv-contrib-python (PyPI)](https://junglewise.ai/threats/technologies/opencv-contrib-python), [opencv-python (PyPI)](https://junglewise.ai/threats/technologies/opencv-python). Vendors: [PyPI](https://junglewise.ai/threats/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

  ```sh
  pip install "opencv-contrib-python>=3.4.1.15"
  ```

- opencv-python (PyPI): upgrade to 3.4.1.15 or later

  ```sh
  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

## Related threats

- [PYSEC-2026-725 - Out-of-bounds Write in OpenCV](https://junglewise.ai/threats/cve-2019-5064-out-of-bounds-write-in-opencv)
- [PYSEC-2026-724 - Out-of-bounds Write in OpenCV](https://junglewise.ai/threats/cve-2019-5063-out-of-bounds-write-in-opencv)
- [PYSEC-2026-723 - Out-of-bounds Read in OpenCV](https://junglewise.ai/threats/cve-2019-19624-out-of-bounds-read-in-opencv)
- [PYSEC-2026-719 - Out-of-bounds Write in OpenCV](https://junglewise.ai/threats/cve-2019-9423-out-of-bounds-write-in-opencv)
- [PYSEC-2026-726 - Out-of-bounds Read in OpenCV](https://junglewise.ai/threats/cve-2019-16249-out-of-bounds-read-in-opencv)
