OpenCV - Out-of-Bounds Read/Write Errors and Buffer Overflows

opencv Updated 02 Oct 2025

Summary

29/09/2017
N/A
Yes i
Unrated
Not published

DLA-1117-1: opencv - security update. Affects opencv versions < 2.3.1-11+deb7u2. Fixed in 2.3.1-11+deb7u2. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

OpenCV is an open-source computer vision and machine learning software library. It provides a wide range of functions and algorithms for image and video processing, object detection, and more. OpenCV version 3.3 and earlier are affected by multiple vulnerabilities, including out-of-bounds read/write errors, buffer overflows, and double free issues.

Vulnerability Detail

The vulnerabilities in OpenCV can be exploited by an attacker to read or write data outside the bounds of allocated memory, leading to potential information disclosure or arbitrary code execution. These vulnerabilities may be triggered by processing specially crafted image or video files. The impact of these vulnerabilities can vary depending on the context in which OpenCV is used, but they have the potential to compromise the integrity and confidentiality of the system.

How To Fix

Minimum fixed version

2.3.1-11+deb7u2

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 →

Conclusion

OpenCV versions up to 3.3 are affected by multiple vulnerabilities, including out-of-bounds read/write errors, buffer overflows, and double free issues. It is crucial to upgrade to a fixed version of OpenCV to mitigate the risk of exploitation. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for opencv →

Share this vulnerability

FAQ

OpenCV is an open-source computer vision and machine learning software library that provides various functions and algorithms for image and video processing.

OpenCV versions up to and including 3.3 are affected by these vulnerabilities.

These vulnerabilities can be exploited by processing specially crafted image or video files.

These vulnerabilities can lead to information disclosure or arbitrary code execution, potentially compromising the integrity and confidentiality of the system.

To fix these vulnerabilities, upgrade to a fixed version of OpenCV, such as version 2.3.1-11+deb7u2 for Debian 7 Wheezy.

Related vulnerabilities

Recent vulnerabilities recorded for opencv.

How To Fix

Minimum fixed version

2.3.1-11+deb7u2

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