# webp crate may expose memory contents when encoding an image

Source: https://junglewise.ai/threats/webp-crate-may-expose-memory-contents-when-encoding-an-image-3b6f8178  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-08-29  
License: CC BY 4.0 with a link back

Severity: medium · CVSS 4 · Published 2025-08-29

webp crate may expose memory contents when encoding an image

Technologies: [webp (crates.io)](https://junglewise.ai/threats/technologies/crates-io-webp). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Medium severity, with a CVSS score of 4, published 29 August 2025.

**Which products and versions are affected?** webp (crates.io) SEMVER:introduced=0,fixed=0.3.1.

**Is there a fix for This vulnerability?** Yes. webp (crates.io): upgrade to 0.3.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run webp (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- webp (crates.io): upgrade to 0.3.1 or later

  ```sh
  cargo update -p webp
  ```


## Affected products

- webp (crates.io) SEMVER:introduced=0,fixed=0.3.1

## Related threats

- [RUSTSEC-2024-0443 - webp crate may expose memory contents when encoding an image](https://junglewise.ai/threats/rustsec-2024-0443-webp-crate-may-expose-memory-contents-when-encoding-a91245d2)
- [RUSTSEC-2023-0060 - libwebp: OOB write in BuildHuffmanTable](https://junglewise.ai/threats/cve-2023-4863-google-chromium-webp-heap-based-buffer-overflow-vulnerability)
