CVE-2023-4863
Google Chromium WebP Heap-Based Buffer Overflow Vulnerability
Description
CVE-2023-4863 is a critical heap buffer overflow vulnerability in the libwebp library used by Google Chrome and numerous other applications for processing WebP images. A remote attacker can exploit this flaw by crafting a malicious HTML page containing a specially crafted WebP image, triggering an out-of-bounds memory write that can lead to arbitrary code execution, data compromise, or application crashes. The vulnerability affects Google Chrome versions prior to 116.0.5845.187, libwebp versions before 1.3.2, and extends to Mozilla Firefox, Microsoft Edge, Microsoft Teams, and many other applications that bundle the libwebp library. With an EPSS score of 94.1% placing it in the 99.9th percentile, CVE-2023-4863 represents one of the most actively targeted vulnerabilities, and CISA has confirmed its active exploitation in the wild.
KEV Information
CVSS Score
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HOpen in CalculatorAffected Products
| Vendor | Product | Version |
|---|---|---|
| chrome | < 116.0.5845.187 | |
| fedoraproject | fedora | 37; 38; 39 |
| debian | debian linux | 10.0; 11.0; 12.0 |
| mozilla | firefox | < 102.15.1; < 117.0.1; >= 115.1.0, < 115.2.1 |
| mozilla | thunderbird | < 102.15.1; >= 115.0, < 115.2.2 |
| microsoft | edge chromium | < 116.0.1938.81 |
| microsoft | teams | < 1.6.00.26463; < 1.6.00.26474 |
| microsoft | webp image extension | < 1.0.62681.0 |
| webmproject | libwebp | < 1.3.2 |
| netapp | active iq unified manager | - |
| bentley | seequent leapfrog | < 2023.2 |
| bandisoft | honeyview | < 5.51 |
Multiple CVSS Assessments
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- http://www.openwall.com/lists/oss-security/2023/09/21/4(Mailing List)
- http://www.openwall.com/lists/oss-security/2023/09/22/1(Mailing List)
- http://www.openwall.com/lists/oss-security/2023/09/22/3(Mailing List)
- http://www.openwall.com/lists/oss-security/2023/09/22/4(Mailing List)
- http://www.openwall.com/lists/oss-security/2023/09/22/5(Mailing List)
- http://www.openwall.com/lists/oss-security/2023/09/22/6(Mailing List)
- http://www.openwall.com/lists/oss-security/2023/09/22/7(Mailing List)
- http://www.openwall.com/lists/oss-security/2023/09/22/8(Mailing List)
- http://www.openwall.com/lists/oss-security/2023/09/26/1(Mailing List)
- http://www.openwall.com/lists/oss-security/2023/09/26/7(Mailing List)
- http://www.openwall.com/lists/oss-security/2023/09/28/1(Mailing List)
- http://www.openwall.com/lists/oss-security/2023/09/28/2(Mailing List)
- http://www.openwall.com/lists/oss-security/2023/09/28/4(Mailing List)
- https://adamcaudill.com/2023/09/14/whose-cve-is-it-anyway/(Third Party Advisory)
- https://blog.isosceles.com/the-webp-0day/(Exploit, Third Party Advisory)
- https://bugzilla.suse.com/show_bug.cgi?id=1215231(Issue Tracking, Third Party Advisory)
- https://chromereleases.googleblog.com/2023/09/stable-channel-update-for-desktop_11.html(Vendor Advisory)
- https://crbug.com/1479274(Issue Tracking, Vendor Advisory)
- https://en.bandisoft.com/honeyview/history/(Release Notes)
- https://github.com/webmproject/libwebp/commit/902bc9190331343b2017211debcec8d2ab87e17a(Patch)
- https://github.com/webmproject/libwebp/releases/tag/v1.3.2(Release Notes)
- https://lists.debian.org/debian-lts-announce/2023/09/msg00015.html(Mailing List, Third Party Advisory)
- https://lists.debian.org/debian-lts-announce/2023/09/msg00016.html(Mailing List, Third Party Advisory)
- https://lists.debian.org/debian-lts-announce/2023/09/msg00017.html(Mailing List, Third Party Advisory)
- https://lists.fedoraproject.org/archives/list/[email protected]/message/6T655QF7CQ3DYAMPFV7IECQYGDEUIVVT/(Mailing List)
- https://lists.fedoraproject.org/archives/list/[email protected]/message/FYYKLG6CRGEDTNRBSU26EEWAO6D6U645/(Mailing List)
- https://lists.fedoraproject.org/archives/list/[email protected]/message/KUQ7CTX3W372X3UY56VVNAHCH6H2F4X3/(Mailing List)
- https://lists.fedoraproject.org/archives/list/[email protected]/message/OZDGWWMJREPAGKWCJKSCM4WYLANSKIFX/(Mailing List)
- https://lists.fedoraproject.org/archives/list/[email protected]/message/PYZV7TMKF4QHZ54SFJX54BDN52VHGGCX/(Mailing List)
- https://lists.fedoraproject.org/archives/list/[email protected]/message/WHOLML7N2G5KCAZXFWC5IDFFHSQS5SDB/(Mailing List)
- https://lists.fedoraproject.org/archives/list/[email protected]/message/WTRUIS3564P7ZLM2S2IH4Y4KZ327LI4I/(Mailing List)
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2023-4863(Patch, Third Party Advisory)
- https://news.ycombinator.com/item?id=37478403(Exploit, Third Party Advisory)
- https://security-tracker.debian.org/tracker/CVE-2023-4863(Issue Tracking, Third Party Advisory)
- https://security.gentoo.org/glsa/202309-05(Third Party Advisory)
- https://security.gentoo.org/glsa/202401-10(Third Party Advisory)
- https://security.netapp.com/advisory/ntap-20230929-0011/(Third Party Advisory)
- https://sethmlarson.dev/security-developer-in-residence-weekly-report-16(Exploit)
- https://stackdiary.com/critical-vulnerability-in-webp-codec-cve-2023-4863/(Exploit, Third Party Advisory)
- https://www.bentley.com/advisories/be-2023-0001/(Third Party Advisory)
- https://www.bleepingcomputer.com/news/google/google-fixes-another-chrome-zero-day-bug-exploited-in-attacks/(Third Party Advisory)
- https://www.debian.org/security/2023/dsa-5496(Mailing List)
- https://www.debian.org/security/2023/dsa-5497(Mailing List)
- https://www.debian.org/security/2023/dsa-5498(Mailing List, Third Party Advisory)
- https://www.mozilla.org/en-US/security/advisories/mfsa2023-40/(Third Party Advisory)
- https://www.vicarius.io/vsociety/posts/zero-day-webp-vulnerability-cve-2023-4863(Exploit, Third Party Advisory)
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-4863(US Government Resource)
Weakness Type
CWE-787: Out-of-bounds Write
CVE-2023-4863 involves an out-of-bounds write in the libwebp image processing library, where a heap buffer overflow occurs during the decoding of specially crafted WebP images. This weakness allows an attacker to write data beyond the boundaries of allocated memory, potentially corrupting adjacent data structures, hijacking program control flow, or executing arbitrary code.
Learn more: CWE-787 — Out-of-bounds Write
Impact Analysis
CVE-2023-4863 is remotely exploitable over the network without physical access and requires low attack complexity, meaning no special conditions are needed beyond delivering a malicious WebP image to the victim. Privileges Required (None): no authentication is needed to exploit this vulnerability. User Interaction (Required): the victim must visit a malicious webpage or open a crafted document containing the exploit payload. Confidentiality (High): successful exploitation can expose sensitive data stored in browser memory or the application process, including credentials, session tokens, and personal information. Integrity (High): the out-of-bounds write allows arbitrary modification of memory contents, enabling code execution and system compromise. Availability (High): exploitation can crash the affected application or destabilize the underlying system. With a CVSS score of 8.8 (High) and an EPSS score of 94.1% indicating near-certain exploitation activity, CVE-2023-4863 poses an extreme risk to any system running an unpatched version of libwebp or applications that depend on it.
Exploit Maturity
Public exploit code is available for CVE-2023-4863 through multiple sources, including detailed technical analysis via Isosceles Security, Stack Diary, Vicarius vSociety, and Seth Larson's analysis. CISA has confirmed active exploitation in the wild by adding CVE-2023-4863 to its Known Exploited Vulnerabilities catalog, and this vulnerability was originally discovered as a zero-day being exploited in targeted attacks. The EPSS score of 94.1% places this vulnerability in the 99.9th percentile, indicating near-certain exploitation activity across the threat landscape, making immediate patching essential for all affected products.
Remediation
- Apply vendor patches immediately: Update Google Chrome to version 116.0.5845.187 or later, and upgrade libwebp to version 1.3.2 or later. CISA required remediation by October 4, 2023. Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
- Patch all affected applications: Because the vulnerability resides in the libwebp library, update all software that bundles it, including Mozilla Firefox, Mozilla Thunderbird, Microsoft Edge (Chromium-based), Microsoft Teams, Microsoft WebP Image Extension, and any third-party applications using libwebp such as Electron-based apps, Bentley Seequent LeapFrog, and Bandisoft Honeyview.
- Deploy content filtering and network controls: Implement web content filtering to block or inspect WebP images from untrusted sources. Configure web application firewalls (WAF) to detect and block malformed WebP payloads targeting the heap buffer overflow.
- Monitor for exploitation indicators: Review browser crash logs, process memory dumps, and endpoint detection alerts for signs of heap corruption or unexpected code execution related to image processing. Check for anomalous WebP file downloads or unusually large WebP images that may indicate exploit delivery.
- Conduct software inventory assessment: Identify all applications in your environment that depend on the libwebp library using software composition analysis (SCA) tools. Prioritize patching based on internet exposure and user interaction patterns, as the vulnerability requires a user to open a crafted page or document.
Technical Details
CVE-2023-4863 is a heap buffer overflow (CWE-787: Out-of-bounds Write) in the libwebp library's WebP image decoding functionality, specifically in the Huffman coding implementation used during lossless WebP decompression. The vulnerability occurs when a specially crafted WebP image triggers an out-of-bounds memory write on the heap, allowing an attacker to overwrite adjacent memory structures and potentially achieve arbitrary code execution within the context of the rendering process. The CVSS vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) reflects that exploitation is network-based with low complexity, requires no privileges but does need user interaction (visiting a malicious page), and achieves full impact across confidentiality, integrity, and availability. The scope is unchanged, meaning the impact is confined to the vulnerable process, but since browsers and many applications run with significant user privileges, the practical impact of code execution is severe. The fix, committed in libwebp as commit 902bc91, addresses the buffer overflow by implementing proper bounds checking during the Huffman table construction phase of WebP decoding.
Frequently Asked Questions
Is CVE-2023-4863 being actively exploited?
Yes, CVE-2023-4863 is actively exploited in the wild. CISA has added it to the Known Exploited Vulnerabilities catalog, and it was originally discovered as a zero-day exploit being used in targeted attacks. The EPSS score of 94.1% confirms near-certain exploitation activity, and multiple public exploit resources are available.
What products are affected by CVE-2023-4863?
CVE-2023-4863 affects a wide range of products that use the libwebp library, including Google Chrome (prior to 116.0.5845.187), libwebp (prior to 1.3.2), Mozilla Firefox, Mozilla Thunderbird, Microsoft Edge Chromium, Microsoft Teams, Microsoft WebP Image Extension, Fedora, Debian Linux, NetApp Active IQ Unified Manager, Bentley Seequent LeapFrog, and Bandisoft Honeyview.
How do I fix CVE-2023-4863?
Update Google Chrome to version 116.0.5845.187 or later, upgrade libwebp to 1.3.2 or later, and patch all other affected applications including Mozilla Firefox, Microsoft Edge, and Microsoft Teams. Conduct a software inventory to identify all applications in your environment that bundle the libwebp library.
How severe is CVE-2023-4863?
CVE-2023-4863 has a CVSS score of 8.8 (High severity) with full impact on confidentiality, integrity, and availability. The EPSS score of 94.1% places it in the 99.9th percentile of exploited vulnerabilities. Given the widespread use of libwebp across browsers and applications, this vulnerability has an exceptionally broad attack surface.
Need Help With Vulnerability Management?
Our security experts can help you prioritize and remediate vulnerabilities effectively.