Skip to content

CVE-2017-1000450 Integer Overflow or Wraparound in OpenCV.

HighCVSS 8.8 EPSS 3.3% PoC
Published
Updated
Exploit status
Proof-of-concept only
Technology
UbuntuDebian

Description

In opencv/modules/imgcodecs/src/utils.cpp, functions FillUniColor and FillUniGray do not check the input length, which can lead to integer overflow. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 and earlier.

Upgrade path

9 packages: 8 fixed.

PackageAffectedFixed inStatus
debian/opencv(Debian 12) < 3.2.0+dfsg-6 3.2.0+dfsg-6 Fixed
debian/opencv(Debian 13) < 3.2.0+dfsg-6 3.2.0+dfsg-6 Fixed
debian/opencv(Debian 14) < 3.2.0+dfsg-6 3.2.0+dfsg-6 Fixed
opencv <= 3.3.0 after 3.3.0 Fixed
pypi opencv-contrib-python(PyPI) < 3.3.1.11; <= 3.3.0.9 3.3.1.11 Fixed
pypi opencv-python(PyPI) < 3.3.1.11; <= 3.3.0.9 3.3.1.11 Fixed
ubuntu/opencv(Ubuntu 16.04) < 2.4.9.1+dfsg-1.5ubuntu1.1; = 2.4.9+dfsg-1ubuntu6; = 2.4.9.1+dfsg-1.2ubuntu1; = 2.4.9.1+dfsg-1.3ubuntu1 +1 more 2.4.9.1+dfsg-1.5ubuntu1.1 Fixed
ubuntu/opencv(Ubuntu 18.04) < 3.2.0+dfsg-4ubuntu0.1; = 3.1.0+dfsg1-1~exp1ubuntu3; = 3.2.0+dfsg-3; = 3.2.0+dfsg-4 +2 more 3.2.0+dfsg-4ubuntu0.1 Fixed
debian linux = 7.0; = 8.0; = 9.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi opencv-python(PyPI) <= 3.3.0.9 No fix listed
pypi opencv-contrib-python(PyPI) <= 3.3.0.9 No fix listed
pypi opencv-python(PyPI) < 3.3.1.11 3.3.1.11
pypi opencv-contrib-python(PyPI) < 3.3.1.11 3.3.1.11
debian/opencv(Debian:12) < 3.2.0+dfsg-6 3.2.0+dfsg-6
debian/opencv(Debian:13) < 3.2.0+dfsg-6 3.2.0+dfsg-6
debian/opencv(Debian:14) < 3.2.0+dfsg-6 3.2.0+dfsg-6
opencv <= 3.3.0 No fix listed
debian linux = 7.0 No fix listed
debian linux = 8.0 No fix listed
debian linux = 9.0 No fix listed
ubuntu/opencv(Ubuntu:16.04) < 2.4.9.1+dfsg-1.5ubuntu1.1 2.4.9.1+dfsg-1.5ubuntu1.1
ubuntu/opencv(Ubuntu:16.04) = 2.4.9+dfsg-1ubuntu6 No fix listed
ubuntu/opencv(Ubuntu:16.04) = 2.4.9.1+dfsg-1.2ubuntu1 No fix listed
ubuntu/opencv(Ubuntu:16.04) = 2.4.9.1+dfsg-1.3ubuntu1 No fix listed
ubuntu/opencv(Ubuntu:16.04) = 2.4.9.1+dfsg-1.5ubuntu1 No fix listed
ubuntu/opencv(Ubuntu:18.04) < 3.2.0+dfsg-4ubuntu0.1 3.2.0+dfsg-4ubuntu0.1
ubuntu/opencv(Ubuntu:18.04) = 3.1.0+dfsg1-1~exp1ubuntu3 No fix listed
ubuntu/opencv(Ubuntu:18.04) = 3.2.0+dfsg-3 No fix listed
ubuntu/opencv(Ubuntu:18.04) = 3.2.0+dfsg-4 No fix listed
ubuntu/opencv(Ubuntu:18.04) = 3.2.0+dfsg-4build1 No fix listed
ubuntu/opencv(Ubuntu:18.04) = 3.2.0+dfsg-4build2 No fix listed

References