Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2023-4863: Heap Buffer Overflow in libwebp Lossless WebP Decoding

Published Sep 12, 2023 · Updated 1 day ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days3 mentions · peak 1 in a dayToday
CVSS8.8High · v3.1
EPSS52.8%99th percentile
CISA KEVYesAdded Sep 13, 2023
In the wildActivePer CISA KEV
Vendors
NetAppGoogleDebian ProjectFaradayMicrosoft CorporationFedora ProjectMozillaBandisoft
IdentifiersCVE-2023-4863CWE-122

CVE-2023-4863 is a heap-based buffer overflow in libwebp's lossless WebP decoder, affecting upstream versions before 1.3.2 and Google Chrome before 116.0.5845.187. Insufficient bounds validation during Huffman table construction allows specially crafted image data to require more table entries than the preallocated heap buffer can accommodate. BuildHuffmanTable, through ReplicateValue, can write beyond that allocation before malformed tables are rejected. An attacker can reach the vulnerable decoder through a malicious WebP image, including an image embedded in a crafted HTML page. The vulnerability affects browsers and other applications incorporating vulnerable libwebp copies and can lead to arbitrary code execution.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can corrupt heap memory, crash the decoding application, or execute arbitrary code with the privileges of the process performing image decoding. Code execution can compromise data confidentiality and integrity and disrupt service availability. The ultimate security boundary depends on the embedding application and its sandboxing; this vulnerability alone does not establish a universal browser sandbox escape or privilege escalation. Exploitation in the wild has been confirmed.

Mitigation

If you can’t patch tonight, do this now.

Until updates are deployed, disable WebP decoding or prevent untrusted image data from reaching affected decoding workflows. Do not rely solely on filename extensions or declared MIME types to identify WebP input; inspect the actual format. Restrict untrusted web-content rendering in embedded browsers. For affected Imageflow deployments, disable the WebP decoder. For HCL Digital Experience, disable Digital Asset Management and Image Processor, or block external HTTP POST and PUT access to those components and prohibit internal uploads of untrusted WebP images. Discontinue exposed affected workflows if neither patching nor effective input restrictions are available.

Remediation

Patch, then assume compromise.

Upgrade libwebp to version 1.3.2 or later, or install a vendor-supported package containing the backported fix. Update Chrome to 116.0.5845.187 or later and other affected browsers and applications to their vendor-designated fixed releases. Replace or rebuild affected bundled and statically linked copies, including those embedded in language packages, application runtimes, and container images; updating the system library alone may not correct these copies. Verify that the application actually loads or incorporates corrected code rather than relying solely on dependency metadata or upstream version strings. Product-specific fixes include HCL BigFix Self-Service Application 3.2.5, HCL Digital Experience CF215, and CefSharp 116.0.230.

Public exploits

Exploits

3 exploits validated by Mallory's analysis. Hidden: 14 rejected by Mallory's analysis as not a working exploit.

View more in app →
CVE-2023-4863This repository is the official source for Google's libwebp, a widely used image encoding/decoding library. The repository contains the full source code, build scripts, documentation, and a suite of example tools for encoding and decoding WebP images. Of particular interest for exploitation is the presence of two files in the examples directory: 'craft.c' and 'poc.py'. - 'examples/craft.c' is a C program that generates a specially crafted WebP image ('bad.webp') designed to trigger a heap buffer overflow in the lossless bitstream parsing logic of libwebp. The exploit is based on research by Ben Hawkes and others, and is directly referenced in public writeups about CVE-2023-4863 (the 'WebP 0day'). - 'examples/poc.py' is a Python script that generates a minimal WebP file ('poc.webp') that also triggers the vulnerability, demonstrating the exploit in a more concise form. The README.md provides detailed instructions for building the library, compiling the exploit, and running it to observe the heap buffer overflow (with AddressSanitizer output included). The exploit works by generating a malformed WebP file that, when decoded by a vulnerable version of libwebp (e.g., via the 'dwebp' tool or any application using libwebp), causes a heap buffer overflow in the BuildHuffmanTable function. This can lead to remote code execution or denial of service, depending on the context in which the image is processed. The repository also includes a full suite of tools and documentation for working with WebP images, but the exploit code is isolated to the 'examples/craft.c' and 'examples/poc.py' files. No network endpoints or remote services are involved; the attack vector is the delivery and processing of a malicious WebP file. The exploit is operational and can be used to test or demonstrate the vulnerability in affected libwebp versions.huiwen-yayaya · Disclosed Nov 11, 2023 · c · python · fileOperationallab-cve-2023-4863This repository is a self-contained Docker lab for reproducing CVE-2023-4863, the libwebp heap buffer overflow. It is not a traditional one-shot exploit against a remote target; instead, it builds an attacker container that generates a malicious WebP file using a public PoC (craft.c), serves it over HTTP, and then demonstrates the effect on multiple victim containers. The main exploit capability is reliable crash reproduction in vulnerable libwebp consumers: the CLI victim downloads exploit.webp and processes it with dwebp, producing heap corruption symptoms and SIGABRT; the GUI victim uses Firefox 110 to load a phishing-style page embedding exploit.webp, demonstrating browser-side impact. Patched CLI and GUI containers are included to show mitigated behavior, where the malformed image is rejected with BITSTREAM_ERROR instead of crashing. Repository structure is centered around docker-compose.yml plus per-role Dockerfiles and entrypoint scripts. attacker/ builds a Debian container, clones the upstream PoC repo, compiles craft.c into a generator, creates exploit.webp, and serves exploit.webp, bad.webp, and index.html via python3 -m http.server on port 80. victim-cli/ and victim-patched/ are Ubuntu 22.04 CLI environments that automatically fetch the malicious file from http://attacker/ and run dwebp to compare vulnerable versus patched libwebp behavior. victim-gui/ and victim-gui-patched/ add XFCE, Xvfb, x11vnc, supervisord, and Firefox builds (110 vulnerable, 126 patched) for interactive browser testing over VNC. guacamole/ contains SQL initialization and connection definitions so the whole lab can be accessed through Apache Guacamole at localhost:8888. Notable observables include the attacker-hosted endpoints http://attacker/exploit.webp, http://attacker/bad.webp, and http://attacker/index.html; exposed local ports 8080, 8888, 2220-2224, 5900, and 5901; and external build-time download sources including GitHub, Launchpad Librarian, and releases.mozilla.org. The exploit does not include a code-execution payload, persistence, or lateral movement logic. Its purpose is demonstrative and educational: generate a malformed WebP, deliver it over HTTP, and prove vulnerable parsing paths by causing application crashes in controlled containers.pixelotes · Disclosed May 13, 2026 · makefile · markdown · file · web · networkOperationalCVE-2023-4863This repository is a minimal proof-of-concept exploit generator for CVE-2023-4863, consisting of a short README and a single Python script, gen_oob_webp.py. The README states it is a modified version of DARKNAVY's script with OFFSET and VALUE constants exposed at the top for easier tuning. The Python script does not attack a remote service directly. Instead, it programmatically constructs a malformed lossless WebP image by assembling RIFF and VP8L structures, generating custom bitstreams, and encoding crafted Huffman code-length tables. Its core purpose is to produce a file that triggers an out-of-bounds heap write when decoded by a vulnerable WebP parser. The overwrite() helper is the key exploit primitive: it lets the operator choose an 8-byte-aligned heap-relative OFFSET and a constrained VALUE (3 through 0x27), which are then encoded into the malicious bitstream to influence the resulting overwrite behavior. Repository structure is extremely small and straightforward: README.md provides attribution and context; gen_oob_webp.py is the sole executable artifact and likely entry point. Internally, the script defines helper functions bitstream_to_bytearray() and bit() for bit-level encoding, builds RIFF_header and image_header, assembles multiple code-length tables for green/red/distance channels, appends padding bytes, recalculates container sizes, and finally writes the generated payload to oob.webp. There are no network callbacks, hardcoded IPs, URLs, registry keys, or command execution routines in the exploit. The only fingerprintable artifact produced by the code is the output file oob.webp, along with the embedded format markers RIFF and WEBPVP8L. Overall, this is a file-based exploit PoC demonstrating controlled memory corruption, not a weaponized exploit or delivery framework.jpselva · Disclosed Apr 22, 2026 · python · markdown · filePoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
BandisoftHoneyviewapplication
BentleySeequent Leapfrogapplication
Debian ProjectDebian Linuxoperating_system
FaradayEdgeapplication
Fedora ProjectFedoraoperating_system
GoogleChromeapplication
Microsoft CorporationEdgeapplication
Microsoft CorporationTeamsapplication
Microsoft CorporationWebp Image Extensionapplication
MozillaFirefoxapplication
MozillaThunderbirdapplication
NetAppActiveiq Unified Managerapplication
WebmprojectLibwebpapplication
FAQ

Frequently asked questions

Is CVE-2023-4863 exploited in the wild?
Yes. As of Nov 27, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Sep 13, 2023.
Is there a public exploit for CVE-2023-4863?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2023-4863, the earliest disclosed Nov 11, 2023.
Is there a patch for CVE-2023-4863?
Upgrade libwebp to version 1.3.2 or later, or install a vendor-supported package containing the backported fix. Update Chrome to 116.0.5845.187 or later and other affected browsers and applications to their vendor-designated fixed releases.
What products are affected by CVE-2023-4863?
Google Chrome, Webmproject Libwebp, NetApp Activeiq Unified Manager, Debian Project Debian Linux, Faraday Edge, and 8 more.
How severe is CVE-2023-4863?
CVE-2023-4863 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 52.8% (99th percentile) as of Nov 27, 2026.
Activity feed

Recent activity

51 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+22 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence2Every report linking this CVE to a named adversary.
Associated malware3Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity10Community discussion across Reddit, Mastodon, and other social sources.