Advisory

GHSA-jcxv-2j3h-mg59

Also known as: CVE-2017-17760, PYSEC-2026-2823, PYSEC-2026-711

Summary

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

Details

OpenCV 3.3.1 (corresponding with opencv-python and opencv-contrib-python 3.3.1.11) has a Buffer Overflow in the cv::PxMDecoder::readData function in grfmt_pxm.cpp, because an incorrect size value is used.

Severity

Medium Basis: The source's own band: MODERATE

Dates

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

Affected packages and fixes

opencv-python

PyPI · All systems

Affected

  • introduced 0, fixed 3.4.0.12 (ecosystem)

Fixed versions

3.4.0.12

Fix

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

opencv-contrib-python

PyPI · All systems

Affected

  • introduced 0, fixed 3.4.0.12 (ecosystem)

Fixed versions

3.4.0.12

Fix

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

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