8.8high
CVE-2017-12604
Out-of-bounds Write in OpenCV
Also known as GHSA-c7gp-2pch-qh2v, PYSEC-2026-2815, PYSEC-2026-706
Published 9 y ago · modified 58 d ago · JSON
CVSS
8.8
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
2.0%
percentile 81%
Public exploits
0
none known
Summary
OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the FillUniColor function in utils.cpp when reading an image file by using cv::imread.
Exploit prediction (EPSS)
1.99% probability of exploitation in the next 30 days, higher than 81% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pypi | opencv-python | <3.3.1.11 | 3.3.1.11 |
| pypi | opencv-contrib-python | <3.3.1.11 | 3.3.1.11 |
Classification
- Weakness
- CWE-787 Out-of-bounds Write
References
- lists.debian.org /debian-lts-announce/2018/07/msg00030.html · mailing-list, x_refsource_MLIST, x_transferred
- security.gentoo.org /glsa/201712-02 · vendor-advisory, x_refsource_GENTOO, x_transferred
- github.com /xiaoqx/pocs/blob/master/opencv.md · x_refsource_MISC, x_transferred
- github.com /opencv/opencv/issues/9309 · x_refsource_MISC, x_transferred
- lists.debian.org /debian-lts-announce/2021/10/msg00028.html · mailing-list, x_refsource_MLIST, x_transferred
- nvd.nist.gov /vuln/detail/CVE-2017-12604 · advisory
- github.com /opencv/opencv/pull/9376 · web
- github.com /opencv/opencv-python · package
- pypi.org /project/opencv-contrib-python · package
- github.com /advisories/GHSA-c7gp-2pch-qh2v · advisory
- pypi.org /project/opencv-python · package
Sources
- CVE List: CVE-2017-12604
- GitHub Advisory: GHSA-c7gp-2pch-qh2v
- NVD: CVE-2017-12604
- OSV: PYSEC-2026-706
- OSV: PYSEC-2026-2815
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.