CVE-2018-5269 Reachable Assertion in OpenCV.
An incorrect integer cast in OpenCV causes an assertion failure, leading to a denial of service when processing malformed images.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2018-5269?
CVE-2018-5269 is a medium-severity vulnerability in Debian Debian Linux, published on 8 Jan 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
In OpenCV 3.3.1, an assertion failure happens in cv::RBaseStream::setPos in modules/imgcodecs/src/bitstrm.cpp because of an incorrect integer cast.
Weakness: CWE-617
Which versions are affected by CVE-2018-5269?
6 open source packages ship an affected version, including opencv-contrib-python and opencv-python. It affects 2 products.
| 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 Debian Debian Linux, Opencv Opencv.
How do I fix CVE-2018-5269?
Upgrade opencv-contrib-python to 3.4.1.15 or later.
Is CVE-2018-5269 being exploited?
There is no known exploitation of CVE-2018-5269 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2018-5269, GHSA-89rj-5ggj-3p9p, PYSEC-2026-2812, PYSEC-2026-703, UBUNTU-CVE-2018-5269.