MEDIUM5.5
PYSEC-2026-2817
Improper Input Validation in OpenCV
Quick fix
PYSEC-2026-2817 — opencv-python: upgrade to the fixed version with the command below.
pip install --upgrade 'opencv-python>=3.3.1.11'Details
OpenCV 3.0.0 allows remote attackers to cause a denial of service (segfault) via vectors involving corrupt chunks. This issue was fixed in OpenCV version 3.3.1 (corresponding to OpenCV 3.3.1.11).
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/opencv-python
Introduced in:
0Fixed in: 3.3.1.11Fix
pip install --upgrade 'opencv-python>=3.3.1.11'References
- https://nvd.nist.gov/vuln/detail/CVE-2016-1517[ADVISORY]
- https://github.com/opencv/opencv/issues/5956[WEB]
- https://github.com/opencv/opencv/pull/9376[WEB]
- https://arxiv.org/pdf/1701.04739.pdf[WEB]
- https://github.com/opencv/opencv-python[PACKAGE]
- https://pypi.org/project/opencv-python[PACKAGE]
- https://github.com/advisories/GHSA-fffj-9qwg-qmh5[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"]}'