Every CVE Search/ Get API key

CVE-2019-15939

Divide By Zero in OpenCV.

5.9 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

2.46%Up 1.6 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 5.9

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.

Record
CVE-2019-15939
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-369
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2019-15939
Updated
2026-11-02
EUVDEUVD-2021-2211 No score

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.

Record
EUVD-2021-2211
Updated
2026-11-03
GitHub AdvisoriesGHSA-hxfw-jm98-v4mq 5.9

Divide By Zero in OpenCV.

An issue was discovered in OpenCV 4.1.0 (OpenCV-Python 4.1.0.25). There is a divide-by-zero error in cv::HOGDescriptor::getDescriptorSize in modules/objdetect/src/hog.cpp.

Record
GHSA-hxfw-jm98-v4mq
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-369
Updated
2026-11-02
OSV 5.9

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.

Record
CVE-2019-15939
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2019-15939 5.9

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.

Record
DEBIAN-CVE-2019-15939
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 13 moreShow less
OSVGHSA-hxfw-jm98-v4mq 5.9

Divide By Zero in OpenCV.

An issue was discovered in OpenCV 4.1.0 (OpenCV-Python 4.1.0.25). There is a divide-by-zero error in cv::HOGDescriptor::getDescriptorSize in modules/objdetect/src/hog.cpp.

Record
GHSA-hxfw-jm98-v4mq
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-369
Updated
2026-11-02
OSVPYSEC-2026-2799 5.9

Divide By Zero in OpenCV.

An issue was discovered in OpenCV 4.1.0 (OpenCV-Python 4.1.0.25). There is a divide-by-zero error in cv::HOGDescriptor::getDescriptorSize in modules/objdetect/src/hog.cpp.

Record
PYSEC-2026-2799
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVPYSEC-2026-2822 5.9

Divide By Zero in OpenCV.

An issue was discovered in OpenCV 4.1.0 (OpenCV-Python 4.1.0.25). There is a divide-by-zero error in cv::HOGDescriptor::getDescriptorSize in modules/objdetect/src/hog.cpp.

Record
PYSEC-2026-2822
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVPYSEC-2026-2838 5.9

Divide By Zero in OpenCV.

An issue was discovered in OpenCV 4.1.0 (OpenCV-Python 4.1.0.25). There is a divide-by-zero error in cv::HOGDescriptor::getDescriptorSize in modules/objdetect/src/hog.cpp.

Record
PYSEC-2026-2838
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVPYSEC-2026-722 5.9

Divide By Zero in OpenCV.

An issue was discovered in OpenCV 4.1.0 (OpenCV-Python 4.1.0.25). There is a divide-by-zero error in cv::HOGDescriptor::getDescriptorSize in modules/objdetect/src/hog.cpp.

Record
PYSEC-2026-722
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2019-15939 5.9

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.

Record
UBUNTU-CVE-2019-15939
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVMGASA-2020-0030 No score

Updated opencv packages fix security vulnerabilities

The updated packages fix security vulnerabilities:

An issue was discovered in OpenCV before 3.4.7 and 4.x before 4.1.1. There is an out of bounds read in the function cv::predictOrdered cv::HaarEvaluator in modules/objdetect/src/cascadedetect.hpp, which leads to denial of service. (CVE-2019-14491)

An issue was discovered in OpenCV before 3.4.7 and 4.x before 4.1.1. There is an out of bounds read/write in the function HaarEvaluator:: OptFeature::calc in modules/objdetect/src/cascadedetect.hpp, which leads to denial of service. (CVE-2019-14492)

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. (CVE-2019-15939)

Record
MGASA-2020-0030
Updated
2026-11-02
OSVopenSUSE-SU-2019:2671-1 No score

Security update for opencv

This update for opencv fixes the following issues:

Security issues fixed:

  • CVE-2019-14491: Fixed an out of bounds read in the function cv:predictOrderedcv:HaarEvaluator, leading to DOS (bsc#1144352).
  • CVE-2019-14492: Fixed an out of bounds read/write in the function HaarEvaluator:OptFeature:calc, which leads to denial of service (bsc#1144348).
  • CVE-2019-15939: Fixed a divide-by-zero error in cv:HOGDescriptor:getDescriptorSize (bsc#1149742).

Non-security issue fixed:

  • Fixed an issue in opencv-devel that broke builds with 'No rule to make target opencv_calib3d-NOTFOUND' (bsc#1154091).

This update was imported from the SUSE:SLE-15:Update update project.

Record
openSUSE-SU-2019:2671-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:11115-1 No score

libopencv4_5-4.5.2-2.2 on GA media

These are all security issues fixed in the libopencv4_5-4.5.2-2.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:11115-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:11116-1 No score

libopencv3_4-3.4.10-3.3 on GA media

These are all security issues fixed in the libopencv3_4-3.4.10-3.3 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:11116-1
Updated
2026-11-02
OSVSUSE-SU-2019:3192-1 No score

Security update for opencv

This update for opencv fixes the following issues:

Security issues fixed:

  • CVE-2019-14491: Fixed an out of bounds read in the function cv:predictOrderedcv:HaarEvaluator, leading to DOS (bsc#1144352).
  • CVE-2019-14492: Fixed an out of bounds read/write in the function HaarEvaluator:OptFeature:calc, which leads to denial of service (bsc#1144348).
  • CVE-2019-15939: Fixed a divide-by-zero error in cv:HOGDescriptor:getDescriptorSize (bsc#1149742).

Non-security issue fixed:

  • Fixed an issue in opencv-devel that broke builds with 'No rule to make target opencv_calib3d-NOTFOUND' (bsc#1154091).
Record
SUSE-SU-2019:3192-1
Updated
2026-11-02
OSVSUSE-SU-2019:3192-2 No score

Security update for opencv

This update for opencv fixes the following issues:

Security issues fixed:

  • CVE-2019-14491: Fixed an out of bounds read in the function cv:predictOrderedcv:HaarEvaluator, leading to DOS (bsc#1144352).
  • CVE-2019-14492: Fixed an out of bounds read/write in the function HaarEvaluator:OptFeature:calc, which leads to denial of service (bsc#1144348).
  • CVE-2019-15939: Fixed a divide-by-zero error in cv:HOGDescriptor:getDescriptorSize (bsc#1149742).

Non-security issue fixed:

  • Fixed an issue in opencv-devel that broke builds with 'No rule to make target opencv_calib3d-NOTFOUND' (bsc#1154091).
Record
SUSE-SU-2019:3192-2
Updated
2026-11-02
OSVUSN-4818-1 No score

opencv vulnerabilities

It was discovered that OpenCV did not properly manage certain objects, leading to a divide-by-zero. If a user were tricked into loading a specially crafted file, a remote attacker could potentially use this issue to cause a denial of service or possibly execute arbitrary code. (CVE-2019-15939)

It was discovered that OpenCV did not properly manage certain files, leading to an out of bounds read. If a user were tricked into loading a specially crafted file, a remote attacker could potentially use this issue to make OpenCV crash, resulting in a denial of service. This issue was only fixed in Ubuntu 18.04 ESM. (CVE-2019-14491, CVE-2019-14492)

It was discovered that OpenCV did not properly manage certain XML data, leading to a NULL pointer dereference. If a user were tricked into loading a specially crafted file, a remote attacker could potentially use this issue to make OpenCV crash, resulting in a denial of service. This issue was only fixed in Ubuntu 14.04 ESM and Ubuntu 16.04 ESM. (CVE-2019-14493)

It was discovered that OpenCV did not properly manage certain files, leading to a heap-based buffer overflow. If a user were tricked into loading a specially crafted file, a remote attacker could potentially use this issue to cause a denial of service or possibly execute arbitrary code. This issue only affected Ubuntu 18.04 ESM. (CVE-2017-18009)

Record
USN-4818-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
opencv-python
PyPI
through 4.1.0.25
4.1.1.26
opencv-python-headless
PyPI
through 4.1.0.25
4.1.1.26
opencv-contrib-python
PyPI
through 4.1.0.25
4.1.1.26
opencv-contrib-python-headless
PyPI
through 4.1.0.25
4.1.1.26
opencv
Debian:12
before 4.1.2+dfsg-3
4.1.2+dfsg-3
opencv
Debian:13
before 4.1.2+dfsg-3
4.1.2+dfsg-3
opencv
Debian:14
before 4.1.2+dfsg-3
4.1.2+dfsg-3
opencv
Debian:9
From an advisory covering 18 CVEs
before 2.4.9.1+dfsg1-2+deb9u1, plus listed versions
2.4.9.1+dfsg1-2
2.4.9.1+dfsg1-2+deb9u1
opencv-python
PyPI
before 4.1.1.26, plus listed versions
3.4.0.143.4.1.153.4.10.353.4.10.373.4.11.39
Show 25 moreShow less
3.4.11.413.4.11.433.4.11.453.4.13.473.4.14.513.4.14.533.4.15.553.4.16.573.4.16.593.4.17.613.4.17.633.4.18.653.4.2.173.4.3.183.4.4.193.4.5.203.4.6.273.4.7.283.4.8.293.4.9.313.4.9.334.0.0.214.0.1.234.0.1.244.1.0.25
4.1.1.26
opencv-python-headless
PyPI
before 4.1.1.26, plus listed versions
3.4.10.373.4.11.393.4.11.413.4.11.433.4.11.45
Show 19 moreShow less
3.4.13.473.4.14.513.4.14.533.4.15.553.4.16.573.4.16.593.4.17.613.4.17.633.4.18.653.4.3.183.4.4.193.4.5.203.4.6.273.4.7.283.4.8.293.4.9.334.0.0.214.0.1.244.1.0.25
4.1.1.26
Show 20 moreShow less
Affected packages
PackageAffectedFixed
opencv-contrib-python
PyPI
before 4.1.1.26, plus listed versions
3.4.10.353.4.10.373.4.11.393.4.11.413.4.11.43
Show 23 moreShow less
3.4.11.453.4.13.473.4.14.513.4.14.533.4.15.553.4.16.573.4.16.593.4.17.613.4.17.633.4.18.653.4.2.173.4.3.183.4.4.193.4.5.203.4.6.273.4.7.283.4.8.293.4.9.313.4.9.334.0.0.214.0.1.234.0.1.244.1.0.25
4.1.1.26
opencv-contrib-python-headless
PyPI
before 4.1.1.26, plus listed versions
3.4.0.143.4.10.373.4.11.413.4.11.433.4.11.45
Show 21 moreShow less
3.4.13.473.4.14.513.4.14.533.4.15.553.4.16.573.4.16.593.4.17.613.4.17.633.4.18.653.4.2.173.4.3.183.4.4.193.4.5.203.4.6.273.4.7.283.4.8.293.4.9.334.0.0.214.0.1.234.0.1.244.1.0.25
4.1.1.26
opencv
Mageia:7
From an advisory covering 3 CVEs
before 3.4.5-2.1.mga7
3.4.5-2.1.mga7
opencv-python
PyPI
before 4.1.1.26, plus listed versions
3.4.0.143.4.1.153.4.10.353.4.10.373.4.11.39
Show 26 moreShow less
3.4.11.413.4.11.433.4.11.453.4.13.473.4.14.513.4.14.533.4.15.553.4.16.573.4.16.593.4.17.613.4.17.633.4.18.653.4.2.163.4.2.173.4.3.183.4.4.193.4.5.203.4.6.273.4.7.283.4.8.293.4.9.313.4.9.334.0.0.214.0.1.234.0.1.244.1.0.25
4.1.1.26
opencv-contrib-python-headless
PyPI
before 4.1.1.26, plus listed versions
3.4.0.143.4.1.153.4.10.373.4.11.393.4.11.41
Show 23 moreShow less
3.4.11.433.4.11.453.4.13.473.4.14.513.4.14.533.4.15.553.4.16.573.4.16.593.4.17.613.4.17.633.4.18.653.4.2.173.4.3.183.4.4.193.4.5.203.4.6.273.4.7.283.4.8.293.4.9.334.0.0.214.0.1.234.0.1.244.1.0.25
4.1.1.26
opencv
SUSE:Linux Enterprise Module for Package Hub 15
From an advisory covering 3 CVEs
before 3.3.1-6.6.1
3.3.1-6.6.1
opencv
SUSE:Linux Enterprise Workstation Extension 15
From an advisory covering 3 CVEs
before 3.3.1-6.6.1
3.3.1-6.6.1
opencv
SUSE:Linux Enterprise Workstation Extension 15 SP1
From an advisory covering 3 CVEs
before 3.3.1-6.6.1
3.3.1-6.6.1
opencv
SUSE:Linux Enterprise Module for Package Hub 15 SP1
From an advisory covering 3 CVEs
before 3.3.1-6.6.1
3.3.1-6.6.1
opencv
SUSE:Linux Enterprise Module for Package Hub 15 SP2
From an advisory covering 3 CVEs
before 3.3.1-6.6.1
3.3.1-6.6.1
opencv
SUSE:Linux Enterprise Workstation Extension 15 SP2
From an advisory covering 3 CVEs
before 3.3.1-6.6.1
3.3.1-6.6.1
opencv
Ubuntu:Pro:14.04:LTS
before 2.4.8+dfsg1-2ubuntu1.2+esm1, plus listed versions
2.4.5+dfsg-0ubuntu42.4.5+dfsg-0ubuntu52.4.6.1+dfsg-2ubuntu22.4.6.1+dfsg-2ubuntu32.4.6.1+dfsg-2ubuntu4
Show 4 moreShow less
2.4.6.1+dfsg-2ubuntu52.4.8+dfsg-1ubuntu12.4.8+dfsg1-2ubuntu12.4.8+dfsg1-2ubuntu1.2
2.4.8+dfsg1-2ubuntu1.2+esm1
opencv
Ubuntu:Pro:16.04:LTS
before 2.4.9.1+dfsg-1.5ubuntu1.1+esm1, plus listed versions
2.4.9+dfsg-1ubuntu62.4.9.1+dfsg-1.2ubuntu12.4.9.1+dfsg-1.3ubuntu12.4.9.1+dfsg-1.5ubuntu12.4.9.1+dfsg-1.5ubuntu1.1
2.4.9.1+dfsg-1.5ubuntu1.1+esm1
opencv
Ubuntu:Pro:18.04:LTS
before 3.2.0+dfsg-4ubuntu0.1+esm3, plus listed versions
3.1.0+dfsg1-1~exp1ubuntu33.2.0+dfsg-33.2.0+dfsg-43.2.0+dfsg-4build13.2.0+dfsg-4build23.2.0+dfsg-4ubuntu0.13.2.0+dfsg-4ubuntu0.1+esm2
3.2.0+dfsg-4ubuntu0.1+esm3
opencv
Ubuntu:Pro:14.04:LTS
From an advisory covering 5 CVEs
before 2.4.8+dfsg1-2ubuntu1.2+esm1, plus listed versions
2.4.5+dfsg-0ubuntu42.4.5+dfsg-0ubuntu52.4.6.1+dfsg-2ubuntu22.4.6.1+dfsg-2ubuntu32.4.6.1+dfsg-2ubuntu4
Show 4 moreShow less
2.4.6.1+dfsg-2ubuntu52.4.8+dfsg-1ubuntu12.4.8+dfsg1-2ubuntu12.4.8+dfsg1-2ubuntu1.2
2.4.8+dfsg1-2ubuntu1.2+esm1
opencv
Ubuntu:Pro:16.04:LTS
From an advisory covering 5 CVEs
before 2.4.9.1+dfsg-1.5ubuntu1.1+esm1, plus listed versions
2.4.9+dfsg-1ubuntu62.4.9.1+dfsg-1.2ubuntu12.4.9.1+dfsg-1.3ubuntu12.4.9.1+dfsg-1.5ubuntu12.4.9.1+dfsg-1.5ubuntu1.1
2.4.9.1+dfsg-1.5ubuntu1.1+esm1
opencv
Ubuntu:Pro:18.04:LTS
From an advisory covering 5 CVEs
before 3.2.0+dfsg-4ubuntu0.1+esm3, plus listed versions
3.1.0+dfsg1-1~exp1ubuntu33.2.0+dfsg-33.2.0+dfsg-43.2.0+dfsg-4build13.2.0+dfsg-4build23.2.0+dfsg-4ubuntu0.13.2.0+dfsg-4ubuntu0.1+esm2
3.2.0+dfsg-4ubuntu0.1+esm3
opencv
openSUSE:Leap 15.1
From an advisory covering 3 CVEs
before 3.3.1-lp151.6.3.1
3.3.1-lp151.6.3.1
opencv
openSUSE:Tumbleweed
From an advisory covering 2 CVEs
before 4.5.2-2.2
4.5.2-2.2
opencv3
openSUSE:Tumbleweed
From an advisory covering 2 CVEs
before 3.4.10-3.3
3.4.10-3.3

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2019-15939 is a medium vulnerability (CVSS 5.9) in Opencv, published September 5, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.46%, the 84th percentile. Fixed in opencv-python 4.1.1.26.

References

Show 27 moreShow less
MoveEnter Open