CVE-2017-12603
high
CVSS v3
8.8
CVSS v2
6.8
VIR risk
8.8
Description
OpenCV (Open Source Computer Vision Library) through 3.3 has an invalid write in the cv::RLByteStream::getBytes function in modules/imgcodecs/src/bitstrm.cpp when reading an image file by using cv::imread, as demonstrated by the 2-opencv-heapoverflow-fseek test case.
Predictions
Exploit likelihood
92%
Patch ETA
—
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2017-12603
Vendor advisory: cve@mitre.org — https://github.com/opencv/opencv/issues/9309
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | 8.0 | affected | |
| debian | 9.0 | affected | |
| debian | bookworm | fixed | 3.2.0+dfsg-6 |
| debian | bullseye | fixed | 3.2.0+dfsg-6 |
| debian | forky | fixed | 3.2.0+dfsg-6 |
| debian | sid | fixed | 3.2.0+dfsg-6 |
| debian | trixie | fixed | 3.2.0+dfsg-6 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| PyPI | opencv-python | <3.3.1.11 | 3.3.1.11 |
| PyPI | opencv-contrib-python | <3.3.1.11 | 3.3.1.11 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| opencv | opencv | {"endIncluding":"3.3.0"} | |
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-12603
- https://github.com/opencv/opencv/issues/9309
- https://github.com/opencv/opencv/pull/9376
- https://github.com/opencv/opencv-python
- https://github.com/xiaoqx/pocs/blob/master/opencv.md
- https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html
- https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html
- https://security.gentoo.org/glsa/201712-02
- https://security-tracker.debian.org/tracker/CVE-2017-12603
CWEs
CWE-787
Verify integrity in audit chain (admin only). AS-IS.