Advisory

PYSEC-2026-716

Also known as: CVE-2017-12601, GHSA-w96g-3p64-63wr, PYSEC-2026-2831

Summary

Improper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV

Details

OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python 3.3.0.9) has a buffer overflow in the cv::BmpDecoder::readData function in modules/imgcodecs/src/grfmt_bmp.cpp when reading an image file by using cv::imread, as demonstrated by the 4-buf-overflow-readData-memcpy test case.

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2026-07-02 14:13 UTC
Modified
2026-07-13 16:43 UTC

Affected packages and fixes

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: PyPA Advisory Database · CC BY 4.0

Sources & licences