VDB
Sign up
MEDIUM6.5

PYSEC-2026-2823

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

Quick fix

PYSEC-2026-2823 — opencv-python: upgrade to the fixed version with the command below.

pip install --upgrade 'opencv-python>=3.4.0.12'

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/opencv-python
Introduced in: 0Fixed in: 3.4.0.12
Fixpip install --upgrade 'opencv-python>=3.4.0.12'

References