RUSTSEC-2024-0443
MEDIUMwebp crate may expose memory contents when encoding an image
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.
- Published
- 6 Sep 2024
- Last modified
- 10 Sep 2026
- Weakness
- CWE-125
- Also known as
- GHSA-9q78-27f3-2jmh
- Sources
- OSV GHSA-9q78-27f3-2jmhJSONOSVJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | webp | < 0.3.1 | 0.3.1 |
| OSV | crates.io | webp | >= 0.0.0-0, < 0.3.1 | 0.3.1 |
References
- https://github.com/jaredforth/webp/issues/40 · WEB, REPORT
- https://github.com/jaredforth/webp/pull/44 · WEB
- https://github.com/jaredforth/webp/commit/62b47060d7fb8cc0e92e522ee54948edf5aab556 · WEB
- https://github.com/jaredforth/webp · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2024-0443.html · WEB, ADVISORY
- https://crates.io/crates/webp · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Sep 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 29 Aug 2025)