CVE-2017-12601
HIGH 8.8CVSS 3.1Improper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV
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.
- Published
- 7 Aug 2017
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-119CWE-120
- Also known as
- GHSA-w96g-3p64-63wrPYSEC-2026-2831PYSEC-2026-716
- Sources
- NVDJSONOSV GHSA-w96g-3p64-63wrJSONOSV PYSEC-2026-2831JSONOSV PYSEC-2026-716JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | opencv | opencvcpe:2.3:a:opencv:opencv:*:*:*:*:*:*:*:* |
<= 3.3.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| OSV | PyPI | opencv-python | < 3.3.1.11 | 3.3.1.11 |
| OSV | PyPI | opencv-contrib-python | < 3.3.1.11 | 3.3.1.11 |
References
- https://github.com/opencv/opencv/issues/9309 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/xiaoqx/pocs/blob/master/opencv.md · Broken Link, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html · Mailing List, Third Party Advisory, WEB
- https://security.gentoo.org/glsa/201712-02 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-12601 · ADVISORY
- https://github.com/opencv/opencv/pull/9376 · WEB
- https://github.com/opencv/opencv-python · PACKAGE
- https://github.com/opencv/opencv-python/releases/tag/11 · WEB
- https://github.com/opencv/opencv-python/releases/tag/9 · WEB
- https://pypi.org/project/opencv-python · PACKAGE
- https://github.com/advisories/GHSA-w96g-3p64-63wr · ADVISORY
- https://pypi.org/project/opencv-contrib-python · PACKAGE
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 7 Aug 2017)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 12 Oct 2021)