Advisory

GHSA-c7gp-2pch-qh2v

Also known as: CVE-2017-12604, PYSEC-2026-2815, PYSEC-2026-706

Summary

Out-of-bounds Write in OpenCV

Details

OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python and OpenCV-Contrib-Python 3.3.0.9) has an out-of-bounds write error in the FillUniColor function in utils.cpp when reading an image file by using cv::imread.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-10-12 22:01 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

opencv-python

PyPI · All systems

Affected

  • introduced 0, fixed 3.3.1.11 (ecosystem)

Fixed versions

3.3.1.11

Fix

  • Fixed version 3.3.1.11
    pip install --upgrade opencv-python==3.3.1.11

opencv-contrib-python

PyPI · All systems

Affected

  • introduced 0, fixed 3.3.1.11 (ecosystem)

Fixed versions

3.3.1.11

Fix

  • Fixed version 3.3.1.11
    pip install --upgrade opencv-contrib-python==3.3.1.11

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences