cve.bz

CVE-2019-15939 Divide By Zero

5.9 mediumExploit referenceEPSS 2.5%Fix available

Medium (5.9). EPSS 2.5% estimated probability of exploitation activity in the next 30 days. Fixed in opencv-python 4.1.1.26.

On this page
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.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
2.5% (unchanged from 2.5% a week ago; 2.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 85th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-369 Divide By Zero
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-15939 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-15939?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-15939?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-15939 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
opencv:opencvthrough 4.1.0
opensuse:leap15.1
debian:debian_linux9.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-hxfw-jm98-v4mqPyPIopencv-python<4.1.1.264.1.1.26
GHSA-hxfw-jm98-v4mqPyPIopencv-python-headless<4.1.1.264.1.1.26
GHSA-hxfw-jm98-v4mqPyPIopencv-contrib-python<4.1.1.264.1.1.26
GHSA-hxfw-jm98-v4mqPyPIopencv-contrib-python-headless<4.1.1.264.1.1.26
PYSEC-2026-2799PyPIopencv-contrib-python<4.1.1.264.1.1.26
PYSEC-2026-2822PyPIopencv-python<4.1.1.264.1.1.26
PYSEC-2026-2838PyPIopencv-python-headless<4.1.1.264.1.1.26
PYSEC-2026-722PyPIopencv-contrib-python-headless<4.1.1.264.1.1.26

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9opencv2.4.9.1+dfsg1-2+deb9u1DLA-2799-1
Debian12, 13, 14opencv4.1.2+dfsg-3DEBIAN-CVE-2019-15939
UbuntuPro:14.04:LTSopencv2.4.8+dfsg1-2ubuntu1.2+esm1UBUNTU-CVE-2019-15939 USN-4818-1
UbuntuPro:16.04:LTSopencv2.4.9.1+dfsg-1.5ubuntu1.1+esm1UBUNTU-CVE-2019-15939 USN-4818-1
UbuntuPro:18.04:LTSopencv3.2.0+dfsg-4ubuntu0.1+esm3UBUNTU-CVE-2019-15939 USN-4818-1
SUSELinux Enterprise Module for Package Hub 15, Linux Enterprise Workstation Extension 15, Linux Enterprise Workstation Extension 15 SP1opencv3.3.1-6.6.1SUSE-SU-2019:3192-1
SUSELinux Enterprise Module for Package Hub 15 SP1, Linux Enterprise Module for Package Hub 15 SP2, Linux Enterprise Workstation Extension 15 SP2opencv3.3.1-6.6.1SUSE-SU-2019:3192-2
openSUSELeap 15.1opencv3.3.1-lp151.6.3.1openSUSE-SU-2019:2671-1
openSUSETumbleweedopencv4.5.2-2.2openSUSE-SU-2024:11115-1
openSUSETumbleweedopencv33.4.10-3.3openSUSE-SU-2024:11116-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Avoid using the Histogram of Oriented Gradients (HOG) Descriptor algorithm to detect objects in digital images. Alternatively, ensure HOGDescriptor objects are not created from external untrusted files.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6opencvOut of support scope
Red Hat Enterprise Linux 7opencvWill not fix
Red Hat Enterprise Linux 8opencvWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-15939.

References

Check your stackJSON