Buffer overflow in OpenCV - CVE-2017-17760
Published: May 31, 2018
Vulnerability identifier: #VU13114
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-17760
CWE-ID: CWE-120
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to cause DoS condition or execute arbitrary code on the target system.
The weakness exists due to buffer overflow in the cv::PxMDecoder::readData function in grfmt_pxm.cpp when an incorrect size value is used. A remote attacker can supply specially crafted image, trigger memory corruption and cause the service to crash or execute arbitrary code with elevated privileges.
Successful exploitation of the vulnerability may result in system compromise.
The weakness exists due to buffer overflow in the cv::PxMDecoder::readData function in grfmt_pxm.cpp when an incorrect size value is used. A remote attacker can supply specially crafted image, trigger memory corruption and cause the service to crash or execute arbitrary code with elevated privileges.
Successful exploitation of the vulnerability may result in system compromise.
Affected software
OpenCV
Fedora
openSUSE Leap
opencv
Fedora
openSUSE Leap
opencv
How to mitigate CVE-2017-17760
Install update from vendor's website.
opencv - addressed in versions 3.2.0-15.fc26, 3.2.0-15.fc27