8.8high
CVE-2017-12601
Improper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV
Also known as GHSA-w96g-3p64-63wr, PYSEC-2026-2831, PYSEC-2026-716
Published 9 y ago · modified 59 d ago · JSON
CVSS
8.8
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
2.1%
percentile 82%
Public exploits
0
none known
Summary
OpenCV (Open Source Computer Vision Library) through 3.3 has a buffer overflow in the cv::BmpDecoder::readData function in modules/imgcodecs/src/grfmt_bmp.cpp when reading an image file by using cv::imread, as demonstrated by the 4-buf-overflow-readData-memcpy test case.
Exploit prediction (EPSS)
2.09% probability of exploitation in the next 30 days, higher than 82% 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 |
| OSV | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 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 |
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
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-12601 · advisory
- github.com /opencv/opencv/pull/9376 · web
- github.com /opencv/opencv-python · package
- github.com /opencv/opencv-python/releases/tag/11 · web
- github.com /opencv/opencv-python/releases/tag/9 · web
- pypi.org /project/opencv-contrib-python · package
- github.com /advisories/GHSA-w96g-3p64-63wr · advisory
- pypi.org /project/opencv-python · package
Sources
- CVE List: CVE-2017-12601
- GitHub Advisory: GHSA-w96g-3p64-63wr
- NVD: CVE-2017-12601
- OSV: PYSEC-2026-716
- OSV: PYSEC-2026-2831
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.