CVE-2017-18009 Out-of-bounds Read in OpenCV
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.
| Package | Affected | Fixed in |
|---|---|---|
opencv-contrib-python PyPI | All versions | 3.4.1.15 |
opencv-contrib-python PyPI | All versions | 3.4.1.15 |
opencv-contrib-python PyPI | All versions | 3.4.1.15 |
opencv-python PyPI | All versions | 3.4.1.15 |
opencv-python PyPI | All versions | 3.4.1.15 |
opencv-python PyPI | All versions | 3.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.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2017-18009, GHSA-83rh-hx5x-q9p5, PYSEC-2026-2810, PYSEC-2026-702.