CVE-2017-18009 Out-of-bounds Read in OpenCV

High 7.5 Published Updated

A heap-based buffer over-read in OpenCV's HDR decoder allows attackers to cause denial of service or disclose 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-2017-18009?

CVE-2017-18009 is a high-severity memory corruption vulnerability in n/a, published on 1 Jan 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In OpenCV 3.3.1, a heap-based buffer over-read exists in the function cv::HdrDecoder::checkSignature in modules/imgcodecs/src/grfmt_hdr.cpp.

Weakness: CWE-125

Which versions are affected by CVE-2017-18009?

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.4.1.15
opencv-contrib-python PyPIAll versions3.4.1.15
opencv-contrib-python PyPIAll versions3.4.1.15
opencv-python PyPIAll versions3.4.1.15
opencv-python PyPIAll versions3.4.1.15
opencv-python PyPIAll versions3.4.1.15

Products include Opencv Opencv.

How do I fix CVE-2017-18009?

Upgrade opencv-contrib-python to 3.4.1.15 or later.

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

Is CVE-2017-18009 being exploited?

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

Sources

Also known as DEBIAN-CVE-2017-18009, GHSA-83rh-hx5x-q9p5, PYSEC-2026-2810, PYSEC-2026-702.

Is CVE-2017-18009 in your software?

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

Check your SBOMs for free