Vulnerability DatabaseRUSTSEC-2025-0061

RUSTSEC-2025-0061
Rust vulnerability analysis and mitigation

Overview

The vulnerability, identified as RUSTSEC-2023-0061, was discovered in the libwebp library, which is widely used for handling WebP images across various applications. Initially reported through Google Chrome's security advisory (CVE-2023-4863) in September 2023, the vulnerability was found to have much broader implications than initially suggested (Cloudflare Blog).

Technical details

The vulnerability is a heap buffer overflow in the libwebp library's lossless codec's handling of Huffman coding. The issue 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. The bug existed because libwebp would write invalid lookup tables before performing consistency checks (Cloudflare Blog).

Impact

Due to WebP's widespread adoption in web browsers, email clients, chat apps, graphics programs, and operating systems, this vulnerability had far-reaching consequences affecting virtually all users of the WebP format. The heap buffer overflow could allow attackers to modify sensitive data in memory, potentially leading to code execution (Cloudflare Blog).

Mitigation and workarounds

The issue was addressed through a patch to libwebp that implemented additional validation of input data and modified the dynamic memory allocation model. The fix ensures that input data creates valid internal structures and allocates sufficient memory for the buffer. Applications supporting WebP images needed to be updated with the patched version of libwebp (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

CVE-2025-58359MEDIUM6
  • RustRust
  • frost-core
NoYesSep 05, 2025
RUSTSEC-2025-0061N/AN/A
  • RustRust
  • iron
NoNoSep 08, 2025
RUSTSEC-2025-0060N/AN/A
  • RustRust
  • crypto-hash
NoNoSep 08, 2025
RUSTSEC-2025-0059N/AN/A
  • RustRust
  • servo-fontconfig
NoNoSep 08, 2025
RUSTSEC-2025-0058N/AN/A
  • RustRust
  • custom_derive
NoNoSep 07, 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