CVE-2017-12597
Out-of-bounds Write in OpenCV
OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the function FillColorRow1 in utils.cpp when reading an image file by using cv::imread.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.8
OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the function FillColorRow1 in utils.cpp when reading an image file by using cv::imread.
- Record
CVE-2017-12597- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the function FillColorRow1 in utils.cpp when reading an image file by using cv::imread.
- Record
CVE-2017-12597- Updated
- 2026-11-02
EUVDEUVD-2021-2179 No score
OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the function FillColorRow1 in utils.cpp when reading an image file by using cv::imread.
- Record
EUVD-2021-2179- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-8w3x-457r-wg53
8.8
Out-of-bounds Write in OpenCV
OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to opencv-python and opencv-contrib-python through 3.3.0.9) has an out-of-bounds write error in the function FillColorRow1 in utils.cpp when reading an image file by using cv::imread.
- Record
GHSA-8w3x-457r-wg53- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSV
8.8
OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the function FillColorRow1 in utils.cpp when reading an image file by using cv::imread.
- Record
CVE-2017-12597- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2017-12597
8.8
OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the function FillColorRow1 in utils.cpp when reading an image file by using cv::imread.
- Record
DEBIAN-CVE-2017-12597- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVGHSA-8w3x-457r-wg53
8.8
Out-of-bounds Write in OpenCV
OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to opencv-python and opencv-contrib-python through 3.3.0.9) has an out-of-bounds write error in the function FillColorRow1 in utils.cpp when reading an image file by using cv::imread.
- Record
GHSA-8w3x-457r-wg53- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSVPYSEC-2026-2813
8.8
Out-of-bounds Write in OpenCV
OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to opencv-python and opencv-contrib-python through 3.3.0.9) has an out-of-bounds write error in the function FillColorRow1 in utils.cpp when reading an image file by using cv::imread.
- Record
PYSEC-2026-2813- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVPYSEC-2026-704
8.8
Out-of-bounds Write in OpenCV
OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to opencv-python and opencv-contrib-python through 3.3.0.9) has an out-of-bounds write error in the function FillColorRow1 in utils.cpp when reading an image file by using cv::imread.
- Record
PYSEC-2026-704- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2017-12597
8.8
OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the function FillColorRow1 in utils.cpp when reading an image file by using cv::imread.
- Record
UBUNTU-CVE-2017-12597- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
opencv-pythonPyPI |
through 3.3.0.9 | 3.3.1.11 |
opencv-contrib-pythonPyPI |
through 3.3.0.9 | 3.3.1.11 |
opencvDebian:12 |
before 3.2.0+dfsg-6 | 3.2.0+dfsg-6 |
opencvDebian:13 |
before 3.2.0+dfsg-6 | 3.2.0+dfsg-6 |
opencvDebian:14 |
before 3.2.0+dfsg-6 | 3.2.0+dfsg-6 |
opencvDebian:7 From an advisory covering 12 CVEs |
before 2.3.1-11+deb7u2, plus listed versions 2.3.1-112.3.1-11+deb7u1 |
2.3.1-11+deb7u2 |
opencvDebian:8 From an advisory covering 16 CVEs |
before 2.4.9.1+dfsg-1+deb8u2, plus listed versions 2.4.9.1+dfsg-12.4.9.1+dfsg-1+deb8u1 |
2.4.9.1+dfsg-1+deb8u2 |
opencvDebian:9 From an advisory covering 18 CVEs |
before 2.4.9.1+dfsg1-2+deb9u1, plus listed versions 2.4.9.1+dfsg1-2 |
2.4.9.1+dfsg1-2+deb9u1 |
opencv-pythonPyPI |
before 3.3.1.11 | 3.3.1.11 |
opencv-contrib-pythonPyPI |
before 3.3.1.11 | 3.3.1.11 |
opencvUbuntu:16.04:LTS |
before 2.4.9.1+dfsg-1.5ubuntu1.1, plus listed versions 2.4.9+dfsg-1ubuntu62.4.9.1+dfsg-1.2ubuntu12.4.9.1+dfsg-1.3ubuntu12.4.9.1+dfsg-1.5ubuntu1 |
2.4.9.1+dfsg-1.5ubuntu1.1 |
opencvUbuntu:18.04:LTS |
before 3.2.0+dfsg-4ubuntu0.1, plus listed versions 3.1.0+dfsg1-1~exp1ubuntu33.2.0+dfsg-33.2.0+dfsg-43.2.0+dfsg-4build13.2.0+dfsg-4build2 |
3.2.0+dfsg-4ubuntu0.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2017-12597 is a high vulnerability (CVSS 8.8) in Opencv, published August 7, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.99%, the 80th percentile. Fixed in opencv-python 3.3.1.11.
References
lists.debian.org/debian-lts-announce/2018/07/msg00030.html
security.gentoo.org/glsa/201712-02
github.com/xiaoqx/pocs/blob/master/opencv.md
github.com/opencv/opencv/issues/9309
lists.debian.org/debian-lts-announce/2021/10/msg00028.html
nvd.nist.gov/vuln/detail/CVE-2017-12597
Show 10 moreShow less
github.com/opencv/opencv/pull/9376
github.com/opencv/opencv-python/releases/tag/11
github.com/opencv/opencv-python/releases/tag/9
github.com/advisories/GHSA-8w3x-457r-wg53
security-tracker.debian.org/tracker/CVE-2017-12597
github.com/opencv/opencv-python
pypi.org/project/opencv-python
pypi.org/project/opencv-contrib-python
ubuntu.com/security/CVE-2017-12597
cve.org/CVERecord?id=CVE-2017-12597