HIGH8.2
PYSEC-2026-2818
Out-of-bounds Read in OpenCV
Quick fix
PYSEC-2026-2818 — opencv-python: upgrade to the fixed version with the command below.
pip install --upgrade 'opencv-python>=3.4.7.28'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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/opencv-python
Introduced in:
0Fixed in: 3.4.7.28Fix
pip install --upgrade 'opencv-python>=3.4.7.28'References
- https://nvd.nist.gov/vuln/detail/CVE-2019-14491[ADVISORY]
- https://github.com/opencv/opencv/issues/15125[WEB]
- https://github.com/opencv/opencv-python[PACKAGE]
- https://github.com/opencv/opencv/compare/33b765d...4a7ca5a[WEB]
- https://github.com/opencv/opencv/compare/371bba8...ddbd10c[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HPFLN6QAX6SUA4XR4NMKKXX26H3TYCVQ[WEB]
- https://pypi.org/project/opencv-python[PACKAGE]
- https://github.com/advisories/GHSA-fm39-cw8h-3p63[ADVISORY]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:pypi/opencv-python"]}'