Description
OpenCV 3.3.1 has a Buffer Overflow in the cv::PxMDecoder::readData function in grfmt_pxm.cpp, because an incorrect size value is used.
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 | 3.2.0+dfsg-6 | — |
| Debian 13 | opencv | 3.2.0+dfsg-6 | — |
| Debian 12 | opencv | 3.2.0+dfsg-6 | — |
| Debian 9 | opencv | 2.4.9.1+dfsg1-2+deb9u1 | DLA-2799-1 |
| Debian 8 | opencv | 2.4.9.1+dfsg-1+deb8u2 | DLA-1438-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 7 | opencv | 2.3.1-11+deb7u3 | DLA-1235-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | opencv | 3.2.0+dfsg-4ubuntu0.1 | — |
| Ubuntu 16.04 LTS | opencv | 2.4.9.1+dfsg-1.5ubuntu1.1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | opencv-contrib-python | < 3.4.0.12 | 3.4.0.12 | GHSA-jcxv-2j3h-mg59 |
| PyPI | opencv-python | < 3.4.0.12 | 3.4.0.12 | GHSA-jcxv-2j3h-mg59 |
Advisories 3
- DLA-2799-1 opencv - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1438-1 opencv - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1235-1 opencv - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- [debian-lts-announce] 20180722 [SECURITY] [DLA 1438-1] opencv security update mailing-list
- [debian-lts-announce] 20180108 [SECURITY] [DLA 1235-1] opencv security update mailing-list
- https://github.com/opencv/opencv/issues/10351
- https://github.com/opencv/opencv/pull/10369/commits/7bbe1a53cfc097b82b1589f7915a2120de39274c
- 102974 vdb-entry
- [debian-lts-announce] 20211030 [SECURITY] [DLA 2799-1] opencv security update mailing-list