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.
References (5)
Core 5
Core References
Broken Link, Third Party Advisory x_refsource_misc
https://github.com/xiaoqx/pocs/blob/master/opencv.md
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/opencv/opencv/issues/9309
Mailing List, Third Party Advisory mailing-list
x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html
Third Party Advisory vendor-advisory
x_refsource_gentoo
https://security.gentoo.org/glsa/201712-02
Mailing List, Third Party Advisory mailing-list
x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html
Scores
CVSS v3
8.8
EPSS
0.0071
EPSS Percentile
72.3%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Details
CWE
CWE-120
Status
published
Products (5)
debian/debian_linux
8.0
debian/debian_linux
9.0
opencv/opencv
< 3.3.0
pypi/opencv-contrib-python
0 - 3.3.1.11PyPI
pypi/opencv-python
0 - 3.3.1.11PyPI
Published
Aug 07, 2017
Tracked Since
Feb 18, 2026