CVE-2023-4863 - Google Chromium WebP Heap-Based Buffer Overflow Vulnerability

Overview

On September 7, 2023, a patch was issued to Chromium’s libwebp library.  Libwebp is a library that processes WebP image formats for web browsers and browser-based utilities.  Importantly, the original announcement about the vulnerability indicated it was specific to Chrome, but as security researchers began to understand more about the vulnerability and the patch, it was identified that the libwebp library affected a variety of browsers and other applications.  CVE-2023-5129 was published for the libwebp library, but later rejected by the National Vulnerability database as a duplicate of CVE-2023-4863.  This has resulted in some confusion over the specific vulnerabilities, its impact, and its exploitability. 

Key points:

  • Any reference to CVE-2023-5129 should be referring to CVE-2023-4863.  These are not unique vulnerabilities. CVE-2023-5129 is considered a duplicate of CVE-2023-4863, and CVE-2023-5129 was rejected by the National Vulnerability Database.

  • The vulnerability lies in how an application would process WebP images. 

    • WebP is another image format that is efficient and natively supported by most browsers and some other applications.

  • If exploited, the vulnerability could result in denial of service, or possibly remote code execution.

  • While this has been detected as exploited in the wild, no publicly available proof-of-concept exists as of the time of this writing. 

    • While there’s no easy-button exploit to deploy today, it is likely that public POC’s will become available in the future.

Prioritize patching known-vulnerable software, investigating for additional applications not yet included in CVE definitions for this library, and further hardening your environment as part of a defense in depth strategy.

Affected Software

Per the National Vulnerability Database definitions, the following versions of common browsers are known to be vulnerable.  Fortunately, patching web browsers is usually low-risk for an organization, and many browsers are configured to auto-update when possible.

You can also use Tanium to track browser versions across your organization and review the list of known-vulnerable applications compiled by the community.  Tanium has created a custom dashboard to track these items and provide real time visibility of the impact across your organization.

You can also use Tanium to Automate Web Browser Patching with Tanium Deploy.

Tanium Cloud customers will receive this dashboard and supporting content automatically. On-premises customers can access this content after importing the latest version of the Emerging Issues Content solution. See How to Receive the Latest Updates for Critical Vulnerabilities through the Emerging Issues Content Solution as an On-Premises Customer.

Name

Version

Google Chrome

< 116.0.5845.187

Mozilla Firefox

< 117.0.1

Mozilla Firefox ESR

< 102.15.1; 115.0-(up to and including)115.2.1

Mozilla Thunderbird

< 102.15.1; 115.0-(up to and including)115.2.2

Microsoft Edge

< 117.0.2045.31

Slack

< 4.34.119

1Password 8

< 8.10.15

Microsoft Teams for Desktop

< 1.6.00.26474 

Microsoft Teams for Mac

< 1.6.00.26463

Microsoft Visual Studio Code 

< 1.83

Skype

< 8.105.0.208

Github Desktop 

< 3.3.3

Other applications beyond common web browsers use libwebp, and are likely to include this version.  Libwebp can be included in compiled source code and may not include version information reliably. 

Remediation

Many vendors and products have already included the patched version of libwebp in their products, so organizations should prioritize rolling out those updates as soon as possible.  Web browsers are generally low risk for updates compared to the risk of remaining unpatched.  Organizations should prioritize the low-hanging-fruit of browser patching, and continue to monitor for other apps, such as those using the Electron framework which also includes libwebp, and upgrade accordingly.  Compliance scanning will help address common apps and frameworks that leverage this library, and as more affected apps are discovered those definitions are likely to be expanded. 

This libwebp vulnerability is known to be exploited in the wild, and it is likely that other threat actors will eventually weaponize the vulnerability as well.  Don’t delay in patching where you can.

You can also use Tanium to Automate Web Browser Patching with Tanium Deploy.

Final Thoughts

The weaponization of the libwebp framework and maliciously crafted WebP files presents an attractive opportunity for threat actors to gain access to remote systems.  We are continuing to monitor for additional proof-of-concept code or exploitation and will update this content as more is learned about the vulnerability.  In the meantime, prioritize patching of browsers.

References

Automate Web Browser Patching with Tanium Deploy

https://nvd.nist.gov/vuln/detail/CVE-2023-4863

https://blog.isosceles.com/the-webp-0day/

https://gist.github.com/mttaggart/02ed50c03c8283f4c343c3032dd2e7ec