Description
In OpenCV 3.3.1, a heap-based buffer over-read exists in the function cv::HdrDecoder::checkSignature in modules/imgcodecs/src/grfmt_hdr.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 | — |
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 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | opencv-contrib-python | < 3.4.1.15 | 3.4.1.15 | GHSA-83rh-hx5x-q9p5 |
| PyPI | opencv-python | < 3.4.1.15 | 3.4.1.15 | GHSA-83rh-hx5x-q9p5 |
Advisories 1
- USN-4818-1 opencv vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026