CVE-2018-7714
The validateInputImageSize function in modules/imgcodecs/src/loadsave.cpp in OpenCV 3.4.1 allows remote attackers to cause a denial of service (assertion failure) because (pixels <= (1<<30)) may be false. Note: “OpenCV CV_Assert is not an assertion (C-like assert()), it is regular C++ exception which can raised in case of invalid or non-supported parameters.
What to do
Ubuntu has not shipped a fix for every release yet.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | opencv | Fix pending | UBUNTU-CVE-2018-7714 | |
| Ubuntu 16.04 | opencv | Will not fix Upstream marked it as invalid: https://github.com/opencv/opencv/issues/10998#issuecomment-370722738 | UBUNTU-CVE-2018-7714 | |
| Ubuntu 14.04 | opencv | Fix pending | UBUNTU-CVE-2018-7714 | |
| Red Hat Enterprise Linux 8 | opencv | Not affected | ||
| Red Hat Enterprise Linux 8 | opencv-contrib | Not affected | ||
| Red Hat Enterprise Linux 8 | opencv-core | Not affected | ||
| Red Hat Enterprise Linux 8 | opencv-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | opencv-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-opencv | Not affected | ||
| Red Hat Enterprise Linux 7 | opencv | Not affected | ||
| Red Hat Enterprise Linux 7 | opencv-core | Not affected | ||
| Red Hat Enterprise Linux 7 | opencv-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | opencv-devel-docs | Not affected | ||
| Red Hat Enterprise Linux 7 | opencv-python | Not affected | ||
| Red Hat Enterprise Linux 6 | opencv | Not affected | ||
| Red Hat Enterprise Linux 6 | opencv-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | opencv-devel-docs | Not affected | ||
| Red Hat Enterprise Linux 6 | opencv-python | Not affected |
References
- https://github.com/xiaoqx/pocs/tree/master/opencv/dos-by-assert
- https://github.com/opencv/opencv/issues/10998
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.