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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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
- USN-4818-1 opencv vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- DLA-2799-1 opencv - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2019:3192-1 Security update for opencv SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11116-1 libopencv3_4-3.4.10-3.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2019:2671-1 Security update for opencv SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:3192-2 Security update for opencv SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11115-1 libopencv4_5-4.5.2-2.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026