CVE-2019-5063 Out-of-bounds Write in OpenCV

High 8.8 Published Updated

A heap buffer overflow in OpenCV allows attackers to execute arbitrary code by providing a specially crafted XML file.

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-2019-5063?

CVE-2019-5063 is a high-severity memory corruption vulnerability in Oracle Application Testing Suite, published on 3 Jan 2020. 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

An exploitable heap buffer overflow vulnerability exists in the data structure persistence functionality of OpenCV 4.1.0. A specially crafted XML file can cause a buffer overflow, resulting in multiple heap corruptions and potential code execution. An attacker can provide a specially crafted file to trigger this vulnerability.

Weakness: CWE-787, CWE-120

Which versions are affected by CVE-2019-5063?

12 open source packages ship an affected version, including opencv-contrib-python, opencv-contrib-python-headless and opencv-python. It affects 4 products.

PackageAffectedFixed in
opencv-contrib-python PyPIAll versions to 4.1.0.25None
opencv-contrib-python PyPIAll versions to 4.1.0.25None
opencv-contrib-python PyPIAll versions to 4.1.0.25None
opencv-contrib-python-headless PyPIAll versions to 4.1.0.25None
opencv-contrib-python-headless PyPIAll versions to 4.1.0.25None
opencv-contrib-python-headless PyPIAll versions to 4.1.0.25None
6 more packages
opencv-python PyPIAll versions to 4.1.0.25None
opencv-python PyPIAll versions to 4.1.0.25None
opencv-python PyPIAll versions to 4.1.0.25None
opencv-python-headless PyPIAll versions to 4.1.0.25None
opencv-python-headless PyPIAll versions to 4.1.0.25None
opencv-python-headless PyPIAll versions to 4.1.0.25None

Products include Opencv Opencv, Oracle Application Testing Suite, Oracle Big Data Spatial and Graph, Oracle Enterprise Manager Base Platform.

How do I fix CVE-2019-5063?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2019-5063 being exploited?

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

All Oracle Application Testing Suite vulnerabilities

Sources

Also known as DEBIAN-CVE-2019-5063, GHSA-m6vm-8g8v-xfjh, PYSEC-2026-2801, PYSEC-2026-2826, PYSEC-2026-2840, PYSEC-2026-724.

Is CVE-2019-5063 in your software?

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

Check your SBOMs for free