CVE-2019-15939 json
Divide By Zero in OpenCV.
published 2019-09-05 7 y ago modified 2026-09-10 1 mo ago also GHSA-hxfw-jm98-v4mq , PYSEC-2026-2799 , PYSEC-2026-2822 , PYSEC-2026-2838 , PYSEC-2026-722 , EUVD-2021-2211
- cvss
- 5.9
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.5%
- EPSS 2.5% chance of exploitation in 30 days, percentile 84%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi opencv-python 4.1.1.26
- pypi opencv-python-headless 4.1.1.26
- pypi opencv-contrib-python 4.1.1.26
- pypi opencv-contrib-python-headless 4.1.1.26
- opencv Debian 14, Debian 13, Debian 12 4.1.2+dfsg-3
debian advisories DEBIAN-CVE-2019-15939
- opencv Ubuntu Pro 14.04 LTS 2.4.8+dfsg1-2ubuntu1.2+esm1
- opencv Ubuntu Pro 16.04 LTS 2.4.9.1+dfsg-1.5ubuntu1.1+esm1
- opencv Ubuntu Pro 18.04 LTS 3.2.0+dfsg-4ubuntu0.1+esm3
ubuntu advisories UBUNTU-CVE-2019-15939
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- opencv SLE Workstation Extension 15 SP2, SLE Workstation Extension 15 SP1, SLE Workstation Extension 15 +3 more 3.3.1-6.6.1
suse advisories SUSE-SU-2019:3192-2SUSE-SU-2019:3192-1
- opencv openSUSE Tumbleweed 4.5.2-2.2
- opencv3 openSUSE Tumbleweed 3.4.10-3.3
- opencv openSUSE Leap 15.1 3.3.1-lp151.6.3.1
opensuse advisories openSUSE-SU-2024:11115-1openSUSE-SU-2024:11116-1openSUSE-SU-2019:2671-1
- github.com/opencv/opencv#15382 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2019-15939 updated cvss 5.9
opencv: division by zero in cv::HOGDescriptor::getDescriptorSize in modules/objdetect/src/hog.cpp
-
Red Hat Enterprise Linux 6 opencv, opencv-pythonaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 7 opencv, opencv-core, opencv-python Red Hat Enterprise Linux 8 opencv, opencv-core, opencv-contrib, python3-opencvaffected: workaround, no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.46% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/opencv/opencv/pull/15382 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
| OSV | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | opencv-python | <4.1.1.26 |
4.1.1.26 |
| pypi | opencv-python-headless | <4.1.1.26 |
4.1.1.26 |
| pypi | opencv-contrib-python | <4.1.1.26 |
4.1.1.26 |
| pypi | opencv-contrib-python-headless | <4.1.1.26 |
4.1.1.26 |
Classification
- Weakness
-
- CWE-369 Divide By Zero
References
-
github.com
/opencv/opencv/pull/15382
web, exploit, patch, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-12/msg00025.html
vendor-advisory, web, third-party-advisory
-
github.com
/OpenCV/opencv/issues/15287
web, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2021/10/msg00028.html
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2019-15939
advisory
-
github.com
/opencv/opencv-python
package
-
pypi.org
/project/opencv-python-headless
package
-
github.com
/advisories/GHSA-hxfw-jm98-v4mq
advisory
-
pypi.org
/project/opencv-python
package
-
pypi.org
/project/opencv-contrib-python-headless
package
-
pypi.org
/project/opencv-contrib-python
package
Sources
- CVE List CVE-2019-15939
- GitHub Advisory GHSA-hxfw-jm98-v4mq
- NVD CVE-2019-15939
- OSV PYSEC-2026-2838
- OSV PYSEC-2026-2822
- OSV PYSEC-2026-722
- OSV PYSEC-2026-2799
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.