{"id":"RUSTSEC-2026-0131","aliases":["RUSTSEC-2026-0131"],"related":[],"kind":"vulnerability","state":"published","title":"Double-free in `Chomp::inner()`","summary":"`Chomp::inner()` uses `std::ptr::read_unaligned` to move out the value from a\nraw pointer. If the original value is an owned type (e.g. `Box`), calling\n`inner()` moves out the ownership, but the original variable will still be\ndropped at the end of its scope. This causes the same heap memory to be freed\ntwice, resulting in a double-free and undefined behavior.\n\nThis can be triggered through safe public APIs — `Chomp::new()` and\n`Chomp::inner()` — with no `unsafe` required from the caller.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"`Chomp::inner()` uses `std::ptr::read_unaligned` to move out the value from a\nraw pointer. If the original value is an owned type (e.g. `Box`), calling\n`inner()` moves out the ownership, but the original variable will still be\ndropped at the end of its scope. This causes the same heap memory to be freed\ntwice, resulting in a double-free and undefined behavior.\n\nThis can be triggered through safe public APIs — `Chomp::new()` and\n`Chomp::inner()` — with no `unsafe` required from the caller.","format":"markdown","source":"rustsec"}],"published":"2026-05-02T12:00:00.000Z","modified":"2026-05-13T12:45:12.022Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"bitchomp","purl":"pkg:cargo/bitchomp","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/bitchomp","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0131.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/KingPEPSALT/bitchomp/issues/5","tags":["report"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0131","url":"https://rustsec.org/advisories/RUSTSEC-2026-0131.html","licence":"CC0-1.0","modified":"2026-05-13T12:45:12.022Z"}],"updatedAt":"2026-11-25T22:56:43.350Z"}