Security mailing lists by PureSourceCode

GHSA-9q78-27f3-2jmh

MEDIUM

webp 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
RUSTSEC-2024-0443
Sources
OSVJSONOSV RUSTSEC-2024-0443JSON

Scores

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed 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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.