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

CVE-2017-12598: Out-of-bounds Read

October 12, 2021 (updated November 18, 2021)

OpenCV (Open Source Computer Vision Library) has an out-of-bounds read error in the cv::RBaseStream::readBlock function in modules/imgcodecs/src/bitstrm.cpp when reading an image file by using cv::imread, as demonstrated by the 8-opencv-invalid-read-fread test case.

References

  • github.com/advisories/GHSA-33h2-69j3-r336
  • 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-12598
  • security.gentoo.org/glsa/201712-02

Code Behaviors & Features

Detect and mitigate CVE-2017-12598 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-125: Out-of-bounds Read

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:24 +0000.