Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. opencv-python
  4. ›
  5. CVE-2017-12601

CVE-2017-12601: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

October 12, 2021 (updated December 1, 2021)

OpenCV (Open Source Computer Vision Library) 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.

References

  • github.com/advisories/GHSA-w96g-3p64-63wr
  • github.com/opencv/opencv-python/releases/tag/11
  • github.com/opencv/opencv-python/releases/tag/9
  • github.com/opencv/opencv/issues/9309
  • github.com/opencv/opencv/pull/9376
  • github.com/xiaoqx/pocs/blob/master/opencv.md
  • lists.debian.org/debian-lts-announce/2018/07/msg00030.html
  • lists.debian.org/debian-lts-announce/2021/10/msg00028.html
  • nvd.nist.gov/vuln/detail/CVE-2017-12601
  • security.gentoo.org/glsa/201712-02

Code Behaviors & Features

Detect and mitigate CVE-2017-12601 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 3.3.0.9

Fixed versions

  • 3.3.1.11

Solution

Upgrade to version 3.3.1.11 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Source file

pypi/opencv-python/CVE-2017-12601.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:51 +0000.