Advisory

GHSA-8w3x-457r-wg53

Also known as: CVE-2017-12597, PYSEC-2026-2813, PYSEC-2026-704

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 through 3.3.0.9) has an out-of-bounds write error in the function FillColorRow1 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:00 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