Skip to content

CVE-2017-12598 Out-of-bounds Read in OpenCV

HighCVSS 8.8 EPSS 2.0% PoC
Published
Updated
Exploit status
Proof-of-concept only

Description

OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds read error in the cv::RBaseStream::readBlock function in modules/imgcodecs/src/bitstrm.cpp when reading an image file by using cv::imread, as demonstrated by the 8-opencv-invalid-read-fread test case.

Affected products

ProductAffected versionsFixed in
pypi opencv-python(PyPI) < 3.3.1.11 3.3.1.11
pypi opencv-contrib-python(PyPI) < 3.3.1.11 3.3.1.11
pypi opencv-python(PyPI) <= 3.3.0.9 No fix listed
pypi opencv-contrib-python(PyPI) <= 3.3.0.9 No fix listed
debian/opencv(Debian:12) < 3.2.0+dfsg-6 3.2.0+dfsg-6
debian/opencv(Debian:13) < 3.2.0+dfsg-6 3.2.0+dfsg-6
debian/opencv(Debian:14) < 3.2.0+dfsg-6 3.2.0+dfsg-6
opencv <= 3.3.0 No fix listed
debian linux = 8.0 No fix listed
debian linux = 9.0 No fix listed

References