CVE-2019-16249 Out-of-bounds Read in OpenCV

Medium 5.3 Published Updated

An out-of-bounds read in OpenCV's video module can cause application crashes or leak sensitive memory contents.

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

What is CVE-2019-16249?

CVE-2019-16249 is a medium-severity memory corruption vulnerability in n/a, published on 11 Sep 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

OpenCV 4.1.1 has an out-of-bounds read in hal_baseline::v_load in core/hal/intrin_sse.hpp when called from computeSSDMeanNorm in modules/video/src/dis_flow.cpp.

Weakness: CWE-125

Which versions are affected by CVE-2019-16249?

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

PackageAffectedFixed in
opencv-contrib-python PyPIAll versions4.1.2.30
opencv-contrib-python PyPIAll versions4.1.2.30
opencv-contrib-python PyPIAll versions4.1.2.30
opencv-contrib-python-headless PyPIAll versions4.1.2.30
opencv-contrib-python-headless PyPIAll versions4.1.2.30
opencv-contrib-python-headless PyPIAll versions4.1.2.30
6 more packages
opencv-python PyPIAll versions4.1.2.30
opencv-python PyPIAll versions4.1.2.30
opencv-python PyPIAll versions4.1.2.30
opencv-python-headless PyPIAll versions4.1.2.30
opencv-python-headless PyPIAll versions4.1.2.30
opencv-python-headless PyPIAll versions4.1.2.30

Products include Opencv Opencv.

How do I fix CVE-2019-16249?

Upgrade opencv-contrib-python to 4.1.2.30 or later.

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

Is CVE-2019-16249 being exploited?

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

Sources

Also known as GHSA-x3rm-644h-67m8, PYSEC-2026-2803, PYSEC-2026-2833, PYSEC-2026-2842, PYSEC-2026-726, UBUNTU-CVE-2019-16249.

Is CVE-2019-16249 in your software?

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

Check your SBOMs for free