PyPA Advisory Database
PYSEC-2026-720
Out-of-bounds Read in OpenCV
Details
An issue was discovered in OpenCV before 3.4.7 and 4.x before 4.1.1 (OpenCV-Python before 3.4.7.28 and 4.x before 4.1.1.26). There is an out of bounds read in the function cv::predictOrdered<cv::HaarEvaluator> in modules/objdetect/src/cascadedetect.hpp, which leads to denial of service.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | opencv-contrib-python-headless | All versions before 3.4.7.28 (fixed in 3.4.7.28) From 4.0.0.21 before 4.1.1.26 (fixed in 4.1.1.26) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-14491
- https://github.com/opencv/opencv/issues/15125
- https://github.com/opencv/opencv-python
- https://github.com/opencv/opencv/compare/33b765d...4a7ca5a
- https://github.com/opencv/opencv/compare/371bba8...ddbd10c
- https://lists.fedoraproject.org/archives/list/[email protected]/message/HPFLN6QAX6SUA4XR4NMKKXX26H3TYCVQ
- https://pypi.org/project/opencv-contrib-python-headless
- https://github.com/advisories/GHSA-fm39-cw8h-3p63