Skip to content
OpenAdvisories
High · 8.8 CVE-2017-12601 EUVD-2021-2264GHSA-w96g-3p64-63wrPYSEC-2026-2831PYSEC-2026-716

Improper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV

Published Aug 7, 2017 · Updated Aug 5, 2024 · Assigned by mitre

Description

OpenCV (Open Source Computer Vision Library) through 3.3 has a buffer overflow in the cv::BmpDecoder::readData function in modules/imgcodecs/src/grfmt_bmp.cpp when reading an image file by using cv::imread, as demonstrated by the 4-buf-overflow-readData-memcpy test case.

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.

ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
Debian 7 opencv 2.3.1-11+deb7u2 DLA-1117-1
ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
PyPI opencv-contrib-python < 3.3.1.11 3.3.1.11 GHSA-w96g-3p64-63wr
PyPI opencv-python < 3.3.1.11 3.3.1.11 GHSA-w96g-3p64-63wr

Advisories 3

References