Skip to content
OpenAdvisories
Medium · 5.9 CVE-2019-15939 EUVD-2021-2211GHSA-hxfw-jm98-v4mqPYSEC-2026-2799PYSEC-2026-2822PYSEC-2026-2838PYSEC-2026-722

Divide By Zero in OpenCV.

Published Sep 5, 2019 · Updated Aug 5, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 opencv 4.1.2+dfsg-3 —
Debian 13 opencv 4.1.2+dfsg-3 —
Debian 12 opencv 4.1.2+dfsg-3 —
Debian 9 opencv 2.4.9.1+dfsg1-2+deb9u1 DLA-2799-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS opencv 3.2.0+dfsg-4ubuntu0.1+esm3 USN-4818-1
Ubuntu Pro 16.04 LTS opencv 2.4.9.1+dfsg-1.5ubuntu1.1+esm1 USN-4818-1
Ubuntu Pro 14.04 LTS opencv 2.4.8+dfsg1-2ubuntu1.2+esm1 USN-4818-1
ReleasePackageFixed inAdvisory
SLES 15 SP2 opencv 3.3.1-6.6.1 SUSE-SU-2019:3192-2
SLES 15 SP1 opencv 3.3.1-6.6.1 SUSE-SU-2019:3192-2, SUSE-SU-2019:3192-1
SLES 15 opencv 3.3.1-6.6.1 SUSE-SU-2019:3192-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed opencv 4.5.2-2.2 openSUSE-SU-2024:11115-1
openSUSE Tumbleweed opencv3 3.4.10-3.3 openSUSE-SU-2024:11116-1
openSUSE Leap 15.1 opencv 3.3.1-lp151.6.3.1 openSUSE-SU-2019:2671-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI opencv-contrib-python < 4.1.1.26 4.1.1.26 GHSA-hxfw-jm98-v4mq
PyPI opencv-contrib-python-headless < 4.1.1.26 4.1.1.26 GHSA-hxfw-jm98-v4mq
PyPI opencv-python < 4.1.1.26 4.1.1.26 GHSA-hxfw-jm98-v4mq
PyPI opencv-python-headless < 4.1.1.26 4.1.1.26 GHSA-hxfw-jm98-v4mq

Advisories 7

References