Denial of Service Vulnerability in OpenCV Package: CVE-2016-1517

opencv Updated 02 Oct 2025

Summary

10/04/2017
N/A
Yes i
Medium
5.5

CVE-2016-1517: OpenCV 3.0.0 allows remote attackers to cause a denial of service (segfault) via vectors involving corrupt chunks. Affects opencv across 3 version ranges.

< 3.2.0+dfsg-6 < 6123e891224037d6dd0143363fb81476560c7196 < c12243cf4fccf5df7b0270a32883986b373dca7b

Fixed in 3.2.0+dfsg-6. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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, video analysis, and machine learning tasks. The library is designed to be efficient and flexible, making it a popular choice among developers. However, OpenCV version 3.0.0 has a vulnerability that can lead to a denial of service, specifically a segmentation fault, when processing corrupt data chunks.

Vulnerability Detail

CVE-2016-1517 is a vulnerability found in OpenCV 3.0.0 that allows remote attackers to exploit the library by sending specially crafted input that leads to a segmentation fault. This can cause the application using OpenCV to crash, resulting in a denial of service. The vulnerability arises from improper handling of corrupt data chunks, which can be manipulated by an attacker to trigger the fault. The severity of this vulnerability is rated with a CVSS score of 5.5, indicating a moderate risk to affected systems.

How To Fix

Minimum fixed version

3.2.0+dfsg-6

This is the first release that contains the fix.

sudo apt-get install --only-upgrade opencv

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading is not immediately possible, a temporary workaround is to validate and sanitize all input data before processing it with OpenCV. This can help mitigate the risk of triggering the vulnerability. Additionally, consider implementing error handling in your application to gracefully manage any unexpected crashes.

Conclusion

CVE-2016-1517 is a significant vulnerability in OpenCV 3.0.0 that can lead to denial of service through segmentation faults caused by corrupt data. Users are advised to upgrade to a fixed version to mitigate risks. Additionally, implementing input validation can serve as a temporary workaround until the upgrade is completed.

See every vulnerability recorded for opencv →

Share this vulnerability

FAQ

CVE-2016-1517 is a vulnerability in OpenCV 3.0.0 that allows remote attackers to cause a denial of service through segmentation faults triggered by corrupt data.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

Exploitation of this vulnerability can lead to application crashes, resulting in denial of service for users relying on the affected application.

Validating and sanitizing input data before processing it with OpenCV can help prevent exploitation of this vulnerability.

The CVSS score for CVE-2016-1517 is 5.5, indicating a moderate level of risk associated with this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for opencv.

How To Fix

Minimum fixed version

3.2.0+dfsg-6

This is the first release that contains the fix.

sudo apt-get install --only-upgrade opencv

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback