CVE-2016-1517: OpenCV Contrib Python Denial of Service Vulnerability
Summary
CVE-2016-1517: Improper Input Validation in OpenCV. Affects opencv-contrib-python versions < 3.3.1.11. Fixed in 3.3.1.11. How to fix ↓
Also tracked for
- opencv-python · PyPI
- opencv-python · PyPI
- opencv · Debian:11
The same CVE-2016-1517 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 is an open-source computer vision and machine learning software library that provides a common infrastructure for computer vision applications. It is widely used for real-time image processing and computer vision tasks. The opencv-contrib-python package includes additional modules and functionalities that enhance the capabilities of OpenCV. However, certain versions of this package are vulnerable to a denial of service attack due to improper input validation, which can lead to application crashes.
Vulnerability Detail
The vulnerability identified as CVE-2016-1517 in OpenCV 3.0.0 allows remote attackers to exploit corrupt chunks, leading to a segmentation fault (segfault) and causing a denial of service. This issue arises from inadequate validation of input data, which can be manipulated by an attacker to trigger the vulnerability. The ramifications include application instability and potential downtime, impacting users relying on the software for critical tasks.
How To Fix
Latest published version: 5.0.0.93 as of 23 Oct 2026
pip install --upgrade "opencv-contrib-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.3.1.11
This is the first release that contains the fix.
pip install --upgrade "opencv-contrib-python==3.3.1.11"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If immediate updating is not feasible, consider implementing input validation checks in your application to filter out potentially malicious input before it reaches the OpenCV functions. This can help mitigate the risk of triggering the vulnerability.
Conclusion
The CVE-2016-1517 vulnerability in the opencv-contrib-python package poses a significant risk of denial of service due to improper input validation. It is crucial for users to update to version 3.3.1.11 or later to safeguard their applications. Regular monitoring for vulnerabilities, such as through tools like Vulert, can help maintain application security.
See every vulnerability recorded for opencv-contrib-python →
FAQ
CVE-2016-1517 is a vulnerability in OpenCV that allows remote attackers to cause a denial of service by exploiting improper input validation.
OpenCV versions prior to 3.3.1.11 are affected by this vulnerability.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
The main consequence is a denial of service, which can lead to application crashes and downtime.
The best protection is to update to the patched version of the opencv-contrib-python package. Additionally, implementing input validation can help mitigate risks.
References
Related vulnerabilities
Recent vulnerabilities recorded for opencv-contrib-python.