CVE-2019-15939 Divide By Zero in OpenCV.
A divide-by-zero error in OpenCV's HOG descriptor calculation allows attackers to cause a denial of service via crafted input.
- 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-15939?
CVE-2019-15939 is a medium-severity denial of service vulnerability in Debian Debian Linux, published on 5 Sep 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in OpenCV 4.1.0. There is a divide-by-zero error in cv::HOGDescriptor::getDescriptorSize in modules/objdetect/src/hog.cpp.
Weakness: CWE-369
Which versions are affected by CVE-2019-15939?
12 open source packages ship an affected version, including opencv-contrib-python, opencv-contrib-python-headless and opencv-python. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
opencv-contrib-python PyPI | All versions | 4.1.1.26 |
opencv-contrib-python PyPI | All versions | 4.1.1.26 |
opencv-contrib-python PyPI | All versions | 4.1.1.26 |
opencv-contrib-python-headless PyPI | All versions | 4.1.1.26 |
opencv-contrib-python-headless PyPI | All versions | 4.1.1.26 |
opencv-contrib-python-headless PyPI | All versions | 4.1.1.26 |
6 more packages
opencv-python PyPI | All versions | 4.1.1.26 |
opencv-python PyPI | All versions | 4.1.1.26 |
opencv-python PyPI | All versions | 4.1.1.26 |
opencv-python-headless PyPI | All versions | 4.1.1.26 |
opencv-python-headless PyPI | All versions | 4.1.1.26 |
opencv-python-headless PyPI | All versions | 4.1.1.26 |
Products include Debian Debian Linux, Opencv Opencv, Opensuse Leap.
How do I fix CVE-2019-15939?
Upgrade opencv-contrib-python to 4.1.1.26 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2019-15939 being exploited?
There is no known exploitation of CVE-2019-15939 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2019-15939, GHSA-hxfw-jm98-v4mq, PYSEC-2026-2799, PYSEC-2026-2822, PYSEC-2026-2838, PYSEC-2026-722 and 1 more.