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

CVE-2018-5268: Out-of-bounds Write

October 12, 2021 (updated November 18, 2021)

In OpenCV, a heap-based buffer overflow happens in cv::Jpeg2KDecoder::readComponent8u in modules/imgcodecs/src/grfmt_jpeg2000.cpp when parsing a crafted image file.

References

  • www.securityfocus.com/bid/106945
  • github.com/advisories/GHSA-9g8h-pjm4-q92p
  • github.com/opencv/opencv/issues/10541
  • github.com/opencv/opencv/pull/10566/commits/435a3e337bd9d4e11af61cf8b8afca067bf1a8aa
  • lists.debian.org/debian-lts-announce/2018/04/msg00019.html
  • 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-2018-5268

Code Behaviors & Features

Detect and mitigate CVE-2018-5268 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 3.3.1.11

Fixed versions

  • 3.4.1.15

Solution

Upgrade to version 3.4.1.15 or above.

Impact 5.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-787: Out-of-bounds Write

Source file

pypi/opencv-python/CVE-2018-5268.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:50 +0000.