Live threats

All CVEs / Opencv

CVE-2018-5268Opencv

Medium 5.5

Priority
33
CVSS 3.1
5.5
EPSS
1.5%
probability of exploitation in 30 days · percentile 75
Auth required
Yes
Published
Jan 8, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-787
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Opencv.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI opencv-contrib-python < 3.4.1.15 3.4.1.15 pip install "opencv-contrib-python>=3.4.1.15"
PyPI opencv-contrib-python < 3.4.1.15 3.4.1.15 pip install "opencv-contrib-python>=3.4.1.15"
PyPI opencv-python < 3.4.1.15 3.4.1.15 pip install "opencv-python>=3.4.1.15"
PyPI opencv-python < 3.4.1.15 3.4.1.15 pip install "opencv-python>=3.4.1.15"

Per OSV / GitHub Advisories (GHSA-9g8h-pjm4-q92p, PYSEC-2026-705, PYSEC-2026-2814). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
opencvopencv3.3.1
debiandebian_linux7.0
debiandebian_linux8.0
debiandebian_linux9.0

Official sources

References

Links published by the sources. Open them with care.