HighGHSA-c7gp-2pch-qh2vCVE-2017-12604PYSEC-2026-2815PYSEC-2026-706

Out-of-bounds Write in OpenCV

Published 12 Oct 2021 · Updated 10 Sept 2026

Is your project on an affected opencv-python?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
<3.3.1.11
Fixed in
3.3.1.11
Update to the fixed version for your release line, for example:pip install 'opencv-python>=3.3.1.11'
Affected
<3.3.1.11
Fixed in
3.3.1.11
Update to the fixed version for your release line, for example:pip install 'opencv-contrib-python>=3.3.1.11'

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.

Is GHSA-c7gp-2pch-qh2v in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected opencv-python, and gives you the command that fixes it.

More advisories for opencv-python

All 32 advisories for opencv-python

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.