CVE-2017-12598
HIGH8.8EPSS 0.48%Out-of-bounds Read in OpenCV
Published: 10/12/2021Modified: 4/28/2026
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 packages (3)
- Debian/opencvfrom 0, < 3.2.0+dfsg-6
- PyPI/opencv-contrib-pythonfrom 0, < 3.3.1.11
- PyPI/opencv-pythonfrom 0, < 3.3.1.11
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
References (11)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2017-12598
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2017-12598
- PATCHhttps://github.com/opencv/opencv-python
- WEBhttps://github.com/opencv/opencv/issues/9309
- WEBhttps://github.com/opencv/opencv/pull/9376
- WEBhttps://github.com/opencv/opencv-python/releases/tag/11
- WEBhttps://github.com/opencv/opencv-python/releases/tag/9
- WEBhttps://github.com/xiaoqx/pocs/blob/master/opencv.md
- WEBhttps://lists.debian.org/debian-lts-announce/2018/07/msg00030.html
- WEBhttps://lists.debian.org/debian-lts-announce/2021/10/msg00028.html
- WEBhttps://security.gentoo.org/glsa/201712-02