Security mailing lists by PureSourceCode

RUSTSEC-2026-0131

not scored yet

Double-free in `Chomp::inner()`

Chomp::inner() uses std::ptr::read_unaligned to move out the value from a
raw pointer. If the original value is an owned type (e.g. Box), calling
inner() moves out the ownership, but the original variable will still be
dropped at the end of its scope. This causes the same heap memory to be freed
twice, resulting in a double-free and undefined behavior.

This can be triggered through safe public APIs — Chomp::new() and
Chomp::inner() — with no unsafe required from the caller.

Published
2 May 2026
Last modified
13 May 2026
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io bitchomp >= 0.0.0-0

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 2 May 2026)
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.