CVE-2017-12602 Denial of Service in OpenCV

High 7.5 Published Updated

An attacker can cause a denial of service via memory exhaustion in OpenCV, affecting applications using the library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2017-12602?

CVE-2017-12602 is a high-severity denial of service vulnerability in n/a, published on 7 Aug 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

OpenCV (Open Source Computer Vision Library) through 3.3 has a denial of service (memory consumption) issue, as demonstrated by the 10-opencv-dos-memory-exhaust test case.

Which versions are affected by CVE-2017-12602?

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

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 Opencv Opencv.

How do I fix CVE-2017-12602?

Upgrade opencv-contrib-python to 3.3.1.11 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2017-12602 being exploited?

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

Sources

Also known as DEBIAN-CVE-2017-12602, GHSA-pqjj-6f5q-gqph, PYSEC-2026-2827, PYSEC-2026-713, UBUNTU-CVE-2017-12602.

Is CVE-2017-12602 in your software?

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

Check your SBOMs for free