# RUSTSEC-2026-0131: Double-free in `Chomp::inner()`

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-02T12:00:00.000Z
- Modified: 2026-05-13T12:45:12.022Z

## Description

`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.

(As written by RustSec Advisory Database.)

## Affected

- bitchomp (crates.io): from 0.0.0-0

## References

- <https://crates.io/crates/bitchomp> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0131.html> (advisory)
- <https://github.com/KingPEPSALT/bitchomp/issues/5> (report)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0131](https://rustsec.org/advisories/RUSTSEC-2026-0131.html), CC0-1.0, modified 2026-05-13

---

Page: https://cve.day/RUSTSEC-2026-0131 · Whole record: https://cve.day/RUSTSEC-2026-0131.json · Rebuilt by cve.day 2026-11-25T22:56:43.350Z
