Heap-based buffer overflow in libwebp - CVE-2018-25011

 

Heap-based buffer overflow in libwebp - CVE-2018-25011

Published: June 7, 2021


Vulnerability identifier: #VU53844
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-25011
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 in PutLE16() function in libwebp.  A remote attacker can create a specially crafted file, trick the victim into opening it, trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

libwebp
libwebp (Debian package)
libwebp (Red Hat package)
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
SUSE Linux Enterprise Module for Packagehub Subpackages
libwebpdecoder1-debuginfo
libwebpdecoder1
libwebp-devel
libwebpmux1-debuginfo
libwebpmux1
libwebpdemux1-debuginfo
libwebpdemux1
libwebp5-debuginfo-32bit
libwebp5-debuginfo
libwebp5-32bit
libwebp5
libwebp-debugsource
libwebp5 (Ubuntu package)
libwebpdemux1 (Ubuntu package)
libwebpmux1 (Ubuntu package)
libwebpextras0
libwebpdemux2-debuginfo
libwebpdemux2
libwebpdecoder2-debuginfo
libwebpdecoder2
libwebp6-debuginfo
libwebp6
libwebpextras0-debuginfo
libwebpmux2
libwebpmux2-debuginfo
libwebp6-32bit
libwebp6-32bit-debuginfo
libwebp6 (Ubuntu package)
libwebpmux3 (Ubuntu package)
libwebpdemux2 (Ubuntu package)
libwebp
qt5-qtimageformats (Red Hat package)
Migration Toolkit for Containers
Red Hat OpenShift Container Platform
Cloud Pak for Security (CP4S)
SUSE Manager Proxy
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Enterprise Storage
Red Hat Enterprise Linux for Power, little endian
SUSE OpenStack Cloud
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux Desktop
CentOS
Anolis OS
SUSE OpenStack Cloud Crowbar
HPE Helion Openstack
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux Server - AUS
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Software Development Kit
iPadOS
Apple iOS
Ubuntu
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Workstation Extension

How to mitigate CVE-2018-25011

Install updates from vendor's website.

libwebp - update to 1.0.1
libwebp (Debian package) - update to 0.6.1-2+deb10u1
libwebp (Red Hat package) - addressed in versions 0.3.0-10.el7_9, 1.0.0-3.el8_4, 1.0.0-4.el8_1, 1.0.0-4.el8_2
Migration Toolkit for Containers - update to 1.4.6
Cloud Pak for Security (CP4S) - update to 1.8.0.0
Red Hat OpenShift Container Platform - update to 4.6.38
iPadOS - addressed in versions 14.7 18G69, 14.7 18G70
Apple iOS - update to 14.7 18G69
libwebpdecoder1-debuginfo - update to 0.4.3-4.7.1
libwebpdecoder1 - update to 0.4.3-4.7.1
libwebp-devel - addressed in versions 0.4.3-4.7.1, 0.5.0-3.5.1
libwebpmux1-debuginfo - update to 0.4.3-4.7.1
libwebpmux1 - update to 0.4.3-4.7.1
libwebpdemux1-debuginfo - update to 0.4.3-4.7.1
libwebpdemux1 - update to 0.4.3-4.7.1
libwebp5-debuginfo-32bit - update to 0.4.3-4.7.1
libwebp5-debuginfo - update to 0.4.3-4.7.1
libwebp5-32bit - update to 0.4.3-4.7.1
libwebp5 - update to 0.4.3-4.7.1
libwebp-debugsource - addressed in versions 0.4.3-4.7.1, 0.5.0-3.5.1
libwebp5 (Ubuntu package) - update to 0.4.41ubuntu0.1~esm1
libwebpdemux1 (Ubuntu package) - update to 0.4.41ubuntu0.1~esm1
libwebpmux1 (Ubuntu package) - update to 0.4.41ubuntu0.1~esm1
libwebpextras0 - update to 0.5.0-3.5.1
libwebpdemux2-debuginfo - update to 0.5.0-3.5.1
libwebpdemux2 - update to 0.5.0-3.5.1
libwebpdecoder2-debuginfo - update to 0.5.0-3.5.1
libwebpdecoder2 - update to 0.5.0-3.5.1
libwebp6-debuginfo - update to 0.5.0-3.5.1
libwebp6 - update to 0.5.0-3.5.1
libwebpextras0-debuginfo - update to 0.5.0-3.5.1
libwebpmux2 - update to 0.5.0-3.5.1
libwebpmux2-debuginfo - update to 0.5.0-3.5.1
libwebp6-32bit - update to 0.5.0-3.5.1
libwebp6-32bit-debuginfo - update to 0.5.0-3.5.1
libwebp6 (Ubuntu package) - addressed in versions 0.6.1-2ubuntu0.18.04.1, 0.6.1-2ubuntu0.20.04.1, 0.6.1-2ubuntu0.20.10.1, 0.6.1-2ubuntu0.21.04.1
libwebpmux3 (Ubuntu package) - addressed in versions 0.6.1-2ubuntu0.18.04.1, 0.6.1-2ubuntu0.20.04.1, 0.6.1-2ubuntu0.20.10.1, 0.6.1-2ubuntu0.21.04.1
libwebpdemux2 (Ubuntu package) - addressed in versions 0.6.1-2ubuntu0.18.04.1, 0.6.1-2ubuntu0.20.04.1, 0.6.1-2ubuntu0.20.10.1, 0.6.1-2ubuntu0.21.04.1
libwebp-devel - addressed in versions 1.0.0-3, 1.0.0-4
libwebp - addressed in versions 1.0.0-3, 1.0.0-4
qt5-qtimageformats (Red Hat package) - update to 5.9.7-2.el7_9

External References

Related Security Bulletins