Live threats

All CVEs / Opencv

CVE-2017-12603Opencv

High 8.8 No auth needed

Priority
68
CVSS 3.1
8.8
EPSS
2.0%
probability of exploitation in 30 days · percentile 81
Auth required
No
Published
Aug 7, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-787
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

OpenCV (Open Source Computer Vision Library) through 3.3 has an invalid write in the cv::RLByteStream::getBytes function in modules/imgcodecs/src/bitstrm.cpp when reading an image file by using cv::imread, as demonstrated by the 2-opencv-heapoverflow-fseek test case.

Original NVD text.

What to do

  1. Apply the vendor's security update for Opencv.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

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

Per OSV / GitHub Advisories (GHSA-6v6p-p97v-g2p7, PYSEC-2026-701, PYSEC-2026-2809). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
opencvopencv≤ 3.3.0
debiandebian_linux8.0
debiandebian_linux9.0

Official sources

References

Links published by the sources. Open them with care.