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/write in the function HaarEvaluator::OptFeature::calc 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 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-fw99-f933-rgh8 |
| PyPI | opencv-contrib-python | >= 4.0.0.21, < 4.1.1.26 | 4.1.1.26 | GHSA-fw99-f933-rgh8 |
| 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-2798 |
| PyPI | opencv-contrib-python-headless | < 3.4.7.28 | 3.4.7.28 | GHSA-fw99-f933-rgh8 |
| PyPI | opencv-contrib-python-headless | >= 4.0.0.21, < 4.1.1.26 | 4.1.1.26 | GHSA-fw99-f933-rgh8 |
| 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-721 |
| PyPI | opencv-python | < 3.4.7.28 | 3.4.7.28 | GHSA-fw99-f933-rgh8 |
| PyPI | opencv-python | >= 4.0.0.21, < 4.1.1.26 | 4.1.1.26 | GHSA-fw99-f933-rgh8 |
| 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-2821 |
| PyPI | opencv-python-headless | < 3.4.7.28 | 3.4.7.28 | GHSA-fw99-f933-rgh8 |
| PyPI | opencv-python-headless | >= 4.0.0.21, < 4.1.1.26 | 4.1.1.26 | GHSA-fw99-f933-rgh8 |
| 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-2837 |
Advisories 4
- 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-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