CVE-2017-12603
published 2017-08-07CVE-2017-12603: 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…
PriorityP339high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
EPSS
1.97%
78.2th percentile
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.
Affected
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | opencv | < opencv 3.2.0+dfsg-6 (bookworm) | opencv 3.2.0+dfsg-6 (bookworm) |
| opencv | opencv | <= 3.3.0 | — |
| opencv | opencv | >= 0 < 3.2.0+dfsg-6 | 3.2.0+dfsg-6 |
| opencv | opencv | >= 0 < 3.2.0+dfsg-6 | 3.2.0+dfsg-6 |
| opencv | opencv | >= 0 < 3.2.0+dfsg-6 | 3.2.0+dfsg-6 |
| opencv | opencv | >= 0 < 3.2.0+dfsg-6 | 3.2.0+dfsg-6 |
CVSS provenance
nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv8.8HIGH
vendor_debian8.8HIGH
vendor_redhat8.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
opencv: invalid write in the cv::RLByteStream::getBytes function
vendor_redhat·2017-08-05·CVSS 8.8
CVE-2017-12603 [HIGH] CWE-787 opencv: invalid write in the cv::RLByteStream::getBytes function
opencv: invalid write in the cv::RLByteStream::getBytes function
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.
Package: opencv (Red Hat Enterprise Linux 6) - Will not fix
Package: opencv (Red Hat Enterprise Linux 7) - Will not fix
Debian
CVE-2017-12603: opencv - OpenCV (Open Source Computer Vision Library) through 3.3 has an invalid write in...
vendor_debian·2017·CVSS 8.8
CVE-2017-12603 [HIGH] CVE-2017-12603: opencv - OpenCV (Open Source Computer Vision Library) through 3.3 has an invalid write in...
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.
Scope: local
bookworm: resolved (fixed in 3.2.0+dfsg-6)
bullseye: resolved (fixed in 3.2.0+dfsg-6)
forky: resolved (fixed in 3.2.0+dfsg-6)
sid: resolved (fixed in 3.2.0+dfsg-6)
trixie: resolved (fixed in 3.2.0+dfsg-6)
GHSA
Out-of-bounds Write in OpenCV
ghsa·2021-10-12
CVE-2017-12603 [HIGH] CWE-787 Out-of-bounds Write in OpenCV
Out-of-bounds Write in OpenCV
OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python and OpenCV-Contrib-Python 3.3.0.9) 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.
OSV
Out-of-bounds Write in OpenCV
osv·2021-10-12
CVE-2017-12603 [HIGH] Out-of-bounds Write in OpenCV
Out-of-bounds Write in OpenCV
OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python and OpenCV-Contrib-Python 3.3.0.9) 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.
OSV
CVE-2017-12603: OpenCV (Open Source Computer Vision Library) through 3
osv·2017-08-07·CVSS 8.8
CVE-2017-12603 [HIGH] CVE-2017-12603: OpenCV (Open Source Computer Vision Library) through 3
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2017-12597 CVE-2017-12598 CVE-2017-12599 CVE-2017-12600 CVE-2017-12601 CVE-2017-12602 CVE-2017-12603 CVE-2017-12604 CVE-2017-12605 CVE-2017-12606 opencv: various flaws [fedora-all]
bugzilla·2017-08-22·CVSS 8.8
CVE-2017-12597 [HIGH] CVE-2017-12597 CVE-2017-12598 CVE-2017-12599 CVE-2017-12600 CVE-2017-12601 CVE-2017-12602 CVE-2017-12603 CVE-2017-12604 CVE-2017-12605 CVE-2017-12606 opencv: various flaws [fedora-all]
CVE-2017-12597 CVE-2017-12598 CVE-2017-12599 CVE-2017-12600 CVE-2017-12601 CVE-2017-12602 CVE-2017-12603 CVE-2017-12604 CVE-2017-12605 CVE-2017-12606 opencv: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixe
Bugzilla
CVE-2017-12603 opencv: invalid write in the cv::RLByteStream::getBytes function
bugzilla·2017-08-22·CVSS 8.8
CVE-2017-12603 [HIGH] CVE-2017-12603 opencv: invalid write in the cv::RLByteStream::getBytes function
CVE-2017-12603 opencv: invalid write in the cv::RLByteStream::getBytes function
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.
Reference:
https://github.com/xiaoqx/pocs/blob/master/opencv.md
Discussion:
Created opencv tracking bugs for this issue:
Affects: fedora-all [bug 1483902]
https://github.com/opencv/opencv/issues/9309https://github.com/xiaoqx/pocs/blob/master/opencv.mdhttps://lists.debian.org/debian-lts-announce/2018/07/msg00030.htmlhttps://lists.debian.org/debian-lts-announce/2021/10/msg00028.htmlhttps://security.gentoo.org/glsa/201712-02https://github.com/opencv/opencv/issues/9309https://github.com/xiaoqx/pocs/blob/master/opencv.mdhttps://lists.debian.org/debian-lts-announce/2018/07/msg00030.htmlhttps://lists.debian.org/debian-lts-announce/2021/10/msg00028.htmlhttps://security.gentoo.org/glsa/201712-02
2017-08-07
Published