{"id":"RUSTSEC-2024-0443","summary":"webp crate may expose memory contents when encoding an image","details":"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.\n\nIf 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.\n\nThe flaw was corrected in [pull request #44](https://github.com/jaredforth/webp/pull/44) by always validating the input buffer size when constructing the encoder.","aliases":["GHSA-9q78-27f3-2jmh"],"modified":"2025-10-28T06:29:24.148191Z","published":"2024-09-06T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/webp"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2024-0443.html"},{"type":"REPORT","url":"https://github.com/jaredforth/webp/issues/40"}],"affected":[{"package":{"name":"webp","ecosystem":"crates.io","purl":"pkg:cargo/webp"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.3.1"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"functions":[],"arch":[],"os":[]}},"database_specific":{"cvss":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2024-0443.json","informational":"unsound","categories":["memory-exposure"]}}],"schema_version":"1.7.3"}