CVE-2017-12601Opencv
High 8.8 No auth needed
Follow: this CVE · Opencv · Opencv We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.1
- 8.8
- EPSS
- 2.1% probability of exploitation in 30 days · percentile 82
- Auth required
- No
- Published
- Aug 7, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-120
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Opencv.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | opencv-contrib-python |
< 3.3.1.11 |
3.3.1.11 |
pip install "opencv-contrib-python>=3.3.1.11" |
| PyPI | opencv-contrib-python |
< 3.3.1.11 |
3.3.1.11 |
pip install "opencv-contrib-python>=3.3.1.11" |
| PyPI | opencv-python |
< 3.3.1.11 |
3.3.1.11 |
pip install "opencv-python>=3.3.1.11" |
| PyPI | opencv-python |
< 3.3.1.11 |
3.3.1.11 |
pip install "opencv-python>=3.3.1.11" |
Per OSV / GitHub Advisories (GHSA-w96g-3p64-63wr, PYSEC-2026-716, PYSEC-2026-2831). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| opencv | opencv | ≤ 3.3.0 |
| debian | debian_linux | 8.0 |
| debian | debian_linux | 9.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Issue Tracking Patch Third Party Advisory
- github.com Broken Link Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- security.gentoo.org Third Party Advisory