CVEfocus › CVE database › CVE-2017-12603

CVE-2017-12603

CVSS 8.8 HighEPSS 2.0% (higher than 81% of CVEs)Published 2017-08-07Updated 2024-08-05Assigner: mitre

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.

What to do

Fixed builds are available from Debian, PyPI, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
9Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04opencvFixed3.2.0+dfsg-4ubuntu0.1UBUNTU-CVE-2017-12603
Ubuntu 16.04opencvFixed2.4.9.1+dfsg-1.5ubuntu1.1UBUNTU-CVE-2017-12603
Debian 14opencvFixed3.2.0+dfsg-6DEBIAN-CVE-2017-12603
Debian 13opencvFixed3.2.0+dfsg-6DEBIAN-CVE-2017-12603
Debian 12opencvFixed3.2.0+dfsg-6DEBIAN-CVE-2017-12603
Red Hat Enterprise Linux 7opencvWill not fix
Will not fix
Red Hat Enterprise Linux 7opencv-coreWill not fix
Will not fix
Red Hat Enterprise Linux 7opencv-develWill not fix
Will not fix
Red Hat Enterprise Linux 7opencv-devel-docsWill not fix
Will not fix
Red Hat Enterprise Linux 7opencv-pythonWill not fix
Will not fix
Red Hat Enterprise Linux 6opencvWill not fix
Will not fix
Red Hat Enterprise Linux 6opencv-develWill not fix
Will not fix
Red Hat Enterprise Linux 6opencv-devel-docsWill not fix
Will not fix
Red Hat Enterprise Linux 6opencv-pythonWill not fix
Will not fix
PyPI libraryopencv-contrib-pythonFixed3.3.1.11PYSEC-2026-701
PyPI libraryopencv-pythonFixed3.3.1.11GHSA-6v6p-p97v-g2p7

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.