GHSA-9Q78-27F3-2JMH
webp crate may expose memory contents when encoding an image
Overview
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.
Source: OX vulnerability database
Severity
MEDIUM
No CVSS vector in the source. Severity comes from the advisory.
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Cargo (Rust) | webp | <0.3.1 | 0.3.1 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- github.com https://github.com/jaredforth/webp
- github.com https://github.com/jaredforth/webp/commit/62b47060d7fb8cc0e92e522ee54948edf5aab556
- github.com https://github.com/jaredforth/webp/issues/40
- github.com https://github.com/jaredforth/webp/pull/44
- rustsec.org https://rustsec.org/advisories/RUSTSEC-2024-0443.html
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.