opencv: invalid write in the cv::RLByteStream::getBytes function
Published Aug 7, 2017
8.8
HIGHCVSS 3.1
EPSS 1.99%
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.
Affected products
No data.
Configuration 2
- 8.0
- 9.0
No data.
Red Hat Enterprise Linux 6
opencv
Will not fix
Red Hat Enterprise Linux 7
opencv
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | opencv | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | opencv | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Table of values (10 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 1.99% (0.01986) | 79.87th | v5 (v2026.06.15) |
| Sep 20, 2026 | 1.99% (0.01986) | 79.69th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.32% (0.00315) | 70.56th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.32% (0.00315) | 69.47th | v3 (v2023.03.01) |
| Sep 3, 2023 | 0.32% (0.00315) | 66.49th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.53% (0.00527) | 73.42th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.02% (0.01018) | 40.69th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.02% (0.01018) | 19.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.25% (0.01247) | 30.57th | v5 (v2026.06.15) |
| Apr 14, 2021 | 1.04% (0.01040) | 0.00th | v1 |
References (11)
- https://access.redhat.com/security/cve/CVE-2017-12603 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1483898 Issue Tracking
- https://github.com/advisories/GHSA-6v6p-p97v-g2p7 Advisory
- https://github.com/opencv/opencv/issues/9309 x_refsource_MISCIssue TrackingPatchThird Party Advisory
- https://github.com/opencv/opencv/pull/9376
- https://github.com/xiaoqx/pocs/blob/master/opencv.md x_refsource_MISCBroken LinkThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-12603
- https://security.gentoo.org/glsa/201712-02 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2017-12603
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2017-12603 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1483898 | Issue Tracking | |
| https://github.com/advisories/GHSA-6v6p-p97v-g2p7 | Advisory | |
| https://github.com/opencv/opencv/issues/9309 | x_refsource_MISCIssue TrackingPatchThird Party Advisory | |
| https://github.com/opencv/opencv/pull/9376 | ||
| https://github.com/xiaoqx/pocs/blob/master/opencv.md | x_refsource_MISCBroken LinkThird Party Advisory | |
| https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html | mailing-listx_refsource_MLISTMailing ListThird Party Advisory | |
| https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html | mailing-listx_refsource_MLISTMailing ListThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-12603 | ||
| https://security.gentoo.org/glsa/201712-02 | vendor-advisoryx_refsource_GENTOOThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2017-12603 |
Change history (0)
No recorded changes yet.