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.12Fix
pip install --upgrade 'opencv-python>=3.4.0.12'References
- https://nvd.nist.gov/vuln/detail/CVE-2017-17760[ADVISORY]
- https://github.com/opencv/opencv/issues/10351[WEB]
- https://github.com/opencv/opencv/pull/10369/commits/7bbe1a53cfc097b82b1589f7915a2120de39274c[WEB]
- https://github.com/opencv/opencv-python[PACKAGE]
- https://lists.debian.org/debian-lts-announce/2018/01/msg00008.html[WEB]
- https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html[WEB]
- https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html[WEB]
- http://www.securityfocus.com/bid/102974[WEB]
- https://pypi.org/project/opencv-python[PACKAGE]
- https://github.com/advisories/GHSA-jcxv-2j3h-mg59[ADVISORY]