CVE-2016-1516 Double Free in OpenCV

High 8.8 Published Updated

Attackers can execute arbitrary code via a double free vulnerability in the OpenCV computer vision library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2016-1516?

CVE-2016-1516 is a high-severity use after free vulnerability in Debian Debian Linux, published on 10 Apr 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

OpenCV 3.0.0 has a double free issue that allows attackers to execute arbitrary code.

Weakness: CWE-415

Which versions are affected by CVE-2016-1516?

6 open source packages ship an affected version, including opencv-contrib-python and opencv-python. It affects 2 products.

PackageAffectedFixed in
opencv-contrib-python PyPIAll versions3.3.1.11
opencv-contrib-python PyPIAll versions3.3.1.11
opencv-contrib-python PyPIAll versions3.3.1.11
opencv-python PyPIAll versions3.3.1.11
opencv-python PyPIAll versions3.3.1.11
opencv-python PyPIAll versions3.3.1.11

Products include Debian Debian Linux, Opencv Opencv.

How do I fix CVE-2016-1516?

Upgrade opencv-contrib-python to 3.3.1.11 or later.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2016-1516 being exploited?

There is no known exploitation of CVE-2016-1516 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2016-1516, GHSA-cvhw-2593-5j2q, PYSEC-2026-2816, PYSEC-2026-707, UBUNTU-CVE-2016-1516.

Is CVE-2016-1516 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free