Heap-based buffer overflow in LibreOffice - CVE-2017-7870

 

Heap-based buffer overflow in LibreOffice - CVE-2017-7870

Published: April 21, 2017


Vulnerability identifier: #VU6371
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-7870
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error when processing WMF files with polygons which under certain circumstances when processed (split) can result in output polygons which have too many points to be represented by LibreOffice's internal polygon class. A remote attacker cat embed a malicious WMF file into Office document, trick the victim into opening it, trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.


Affected software

LibreOffice
Gentoo Linux
Red Hat Enterprise Linux Server
Ubuntu
libreoffice (Alpine package)
Sophos Anti-Virus

How to mitigate CVE-2017-7870

Update to version 5.2.5 or 5.3.0.

libreoffice (Alpine package) - update to 5.2.7.2-r0
Sophos Anti-Virus - update to 4.5.12

External References

Related Security Bulletins