GHSA-9q78-27f3-2jmh
medium
webp crate may expose memory contents when encoding an image
- Severity
- medium CVSS:4.0 by GitHub
- Published
- Last changed
- Also known as
- RUSTSEC-2024-0443
Description
Affected versions of this crate did not check that the input slice passed to "webp::Encoder::encode() is large enough for the specified image dimensions.
If the input slice is too short, the library will read out of bounds of the buffer and encode other memory contents as an image, resulting in memory exposure or a segmentation fault.
The flaw was corrected in pull request #44 by always validating the input buffer size when constructing the encoder.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| webp (crates.io) | before 0.3.1, from 0.0.0-0 before 0.3.1 | GitHub Advisory Database, RustSec Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-9q78-27f3-2jmh changed 2026-09-10 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2024-0443 changed 2025-10-28 | CC0-1.0 |