PyPA Advisory Database
PYSEC-2026-2823
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | opencv-python | All versions before 3.4.0.12 (fixed in 3.4.0.12) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-17760
- https://github.com/opencv/opencv/issues/10351
- https://github.com/opencv/opencv/pull/10369/commits/7bbe1a53cfc097b82b1589f7915a2120de39274c
- https://github.com/opencv/opencv-python
- https://lists.debian.org/debian-lts-announce/2018/01/msg00008.html
- https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html
- https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html
- http://www.securityfocus.com/bid/102974
- https://pypi.org/project/opencv-python
- https://github.com/advisories/GHSA-jcxv-2j3h-mg59