Description
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.
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 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | opencv | 3.2.0+dfsg-4ubuntu0.1+esm2 | 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 | < 3.4.7.28 | 3.4.7.28 | GHSA-fm39-cw8h-3p63 |
| PyPI | opencv-contrib-python | >= 4.0.0.21, < 4.1.1.26 | 4.1.1.26 | GHSA-fm39-cw8h-3p63 |
| PyPI | opencv-contrib-python | < 3.4.7.28 · >= 4.0.0.21, < 4.1.1.26 | 3.4.7.28, 4.1.1.26 | PYSEC-2026-2797 |
| PyPI | opencv-contrib-python-headless | < 3.4.7.28 | 3.4.7.28 | GHSA-fm39-cw8h-3p63 |
| PyPI | opencv-contrib-python-headless | >= 4.0.0.21, < 4.1.1.26 | 4.1.1.26 | GHSA-fm39-cw8h-3p63 |
| PyPI | opencv-contrib-python-headless | < 3.4.7.28 · >= 4.0.0.21, < 4.1.1.26 | 3.4.7.28, 4.1.1.26 | PYSEC-2026-720 |
| PyPI | opencv-python | < 3.4.7.28 | 3.4.7.28 | GHSA-fm39-cw8h-3p63 |
| PyPI | opencv-python | >= 4.0.0.21, < 4.1.1.26 | 4.1.1.26 | GHSA-fm39-cw8h-3p63 |
| PyPI | opencv-python | < 3.4.7.28 · >= 4.0.0.21, < 4.1.1.26 | 3.4.7.28, 4.1.1.26 | PYSEC-2026-2818 |
| PyPI | opencv-python-headless | < 3.4.7.28 | 3.4.7.28 | GHSA-fm39-cw8h-3p63 |
| PyPI | opencv-python-headless | >= 4.0.0.21, < 4.1.1.26 | 4.1.1.26 | GHSA-fm39-cw8h-3p63 |
| PyPI | opencv-python-headless | < 3.4.7.28 · >= 4.0.0.21, < 4.1.1.26 | 3.4.7.28, 4.1.1.26 | PYSEC-2026-2836 |
Advisories 6
- USN-4818-1 opencv vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 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