Out-of-bounds write in WebKitGTK+ - CVE-2018-12911
Published: October 26, 2018
Vulnerability identifier: #VU15546
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-2018-12911
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code with elevated privileges.
The weakness exists due to an off-by-one error in the get_simple_globs functions in ThirdParty/xdgmime/src/xdgmimecache.c and ThirdParty/xdgmime/src/xdgmimeglob.c. A remote attacker can trigger out-of-bounds write and execute arbitrary code with elevated privileges.
Successful exploitation of the vulnerability may result in system compromise.
The weakness exists due to an off-by-one error in the get_simple_globs functions in ThirdParty/xdgmime/src/xdgmimecache.c and ThirdParty/xdgmime/src/xdgmimeglob.c. A remote attacker can trigger out-of-bounds write and execute arbitrary code with elevated privileges.
Successful exploitation of the vulnerability may result in system compromise.
Affected software
WebKitGTK+
Opensuse
Ubuntu
webkit2gtk (Alpine package)
libwebkit2gtk-4.0-37 (Ubuntu package)
libjavascriptcoregtk-4.0-18 (Ubuntu package)
Opensuse
Ubuntu
webkit2gtk (Alpine package)
libwebkit2gtk-4.0-37 (Ubuntu package)
libjavascriptcoregtk-4.0-18 (Ubuntu package)
How to mitigate CVE-2018-12911
Install update from vendor's website.
webkit2gtk (Alpine package) - update to 2.20.4-r0
libwebkit2gtk-4.0-37 (Ubuntu package) - addressed in versions 2.20.5-0ubuntu0.16.04.1, 2.20.5-0ubuntu0.18.04.1
libjavascriptcoregtk-4.0-18 (Ubuntu package) - addressed in versions 2.20.5-0ubuntu0.16.04.1, 2.20.5-0ubuntu0.18.04.1
libwebkit2gtk-4.0-37 (Ubuntu package) - addressed in versions 2.20.5-0ubuntu0.16.04.1, 2.20.5-0ubuntu0.18.04.1
libjavascriptcoregtk-4.0-18 (Ubuntu package) - addressed in versions 2.20.5-0ubuntu0.16.04.1, 2.20.5-0ubuntu0.18.04.1