Vulnerability DatabaseRUSTSEC-2025-0061

RUSTSEC-2025-0061
Rust vulnerability analysis and mitigation

Overview

The vulnerability (RUSTSEC-2023-0061) was discovered in the WebP image format implementation within the libwebp library. Initially reported through Google Chrome's security advisory on September 12, 2023, the vulnerability was identified as a heap buffer overflow in WebP processing (Cloudflare Blog).

Technical details

The vulnerability is a heap buffer overflow in the lossless codec's handling of Huffman coding. The bug occurs when processing specially crafted WebP files containing unbalanced Huffman trees with codes longer than normal, causing the function generating lookup tables to write data beyond the allocated buffer. While libwebp had checks for Huffman tree validity, it would write invalid lookup tables before performing the consistency check (Cloudflare Blog).

Impact

The vulnerability allows attackers to create malformed WebP image files that cause libwebp to write beyond the buffer memory allocated to the image decoder. By writing past the legal bounds of the buffer, attackers can modify sensitive data in memory, potentially leading to code execution. Given WebP's widespread adoption across web browsers, email clients, chat apps, graphics programs, and operating systems, this vulnerability had far-reaching consequences (Cloudflare Blog).

Mitigation and workarounds

The fixed version of libwebp ensures that the input data will always create a valid internal structure and allocates more memory if necessary to ensure the buffer is always big enough. Google released patches for Chrome, and the libwebp library was officially patched. Users and organizations are advised to update all applications supporting WebP images to their latest versions (Cloudflare Blog).

Community reactions

The vulnerability initially appeared to be Chrome-specific but was later recognized as affecting virtually every application handling WebP images. GitHub's vulnerability scanner quickly recognized the issue through RustSec reports, highlighting the importance of robust security reporting mechanisms (Cloudflare Blog).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-2fjw-whxm-9v4qCRITICAL9.3
  • RustRust
  • nftnl
NoYesNov 25, 2025
CVE-2025-66017HIGH8.2
  • RustRust
  • cggmp21
NoYesNov 25, 2025
GHSA-mj73-j457-8x9qLOW2.7
  • RustRust
  • maxminddb
NoYesDec 02, 2025
GHSA-pq5v-rwp8-p7gmLOW2.7
  • RustRust
  • rtvm-interpreter
NoNoDec 02, 2025
RUSTSEC-2025-0132N/AN/A
  • RustRust
  • maxminddb
NoYesNov 28, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management