CVE-2018-5269: Reachable Assertion in OpenCV-Python
Summary
CVE-2018-5269: Reachable Assertion in OpenCV. Affects opencv-python versions < 3.4.1.15. Fixed in 3.4.1.15. How to fix ↓
Also tracked for
- opencv-contrib-python · PyPI
- opencv · Debian:11
The same CVE-2018-5269 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
OpenCV-Python is a Python wrapper for the OpenCV computer vision library. It provides easy-to-use functions and methods for image and video processing. OpenCV-Python is widely used in various applications, including computer vision research, robotics, and machine learning. However, OpenCV-Python versions up to 3.3.1.11 are vulnerable to a reachable assertion issue.
Vulnerability Detail
The vulnerability in OpenCV-Python arises from an incorrect integer cast in the cv::RBaseStream::setPos function in the bitstrm.cpp file. This vulnerability can be exploited by an attacker to cause an assertion failure, leading to a denial of service (DoS) condition. The impact of this vulnerability is considered moderate, with a CVSS score of 5.5.
How To Fix
Latest published version: 5.0.0.93 as of 23 Oct 2026
pip install --upgrade "opencv-python==5.0.0.93"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
3.4.1.15
This is the first release that contains the fix.
pip install --upgrade "opencv-python==3.4.1.15"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no specific workaround provided for this vulnerability. The recommended solution is to update to the fixed version of OpenCV-Python.
Conclusion
The reachable assertion vulnerability in OpenCV-Python can be mitigated by updating to the fixed version. It is important to keep software dependencies up to date to ensure the security and stability of applications. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for opencv-python →
FAQ
OpenCV-Python is a Python wrapper for the OpenCV computer vision library. It provides easy-to-use functions and methods for image and video processing.
The vulnerability can be exploited to cause a denial of service (DoS) condition by triggering an assertion failure in OpenCV-Python.
To fix this vulnerability, update OpenCV-Python to version 3.4.1.15 or later.
No specific workaround is provided. Updating to the fixed version is the recommended solution.
For more information about OpenCV-Python, refer to the official OpenCV website or the documentation available online.
References
Related vulnerabilities
Recent vulnerabilities recorded for opencv-python.