Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. thin-vec
  4. ›
  5. CVE-2026-6654

CVE-2026-6654: thin-vec: Use-After-Free and Double Free in IntoIter::drop When Element Drop Panics

April 15, 2026 (updated May 5, 2026)

A Double Free / Use-After-Free (UAF) vulnerability has been identified in the IntoIter::drop and ThinVec::clear implementations of the thin_vec crate. Both vulnerabilities share the same root cause and can trigger memory corruption using only safe Rust code — no unsafe blocks required. Undefined Behavior has been confirmed via Miri and AddressSanitizer (ASAN).


References

  • github.com/advisories/GHSA-xphw-cqx3-667j
  • github.com/mozilla/thin-vec
  • github.com/mozilla/thin-vec/security/advisories/GHSA-xphw-cqx3-667j
  • nvd.nist.gov/vuln/detail/CVE-2026-6654
  • rustsec.org/advisories/RUSTSEC-2026-0103.html

Code Behaviors & Features

Detect and mitigate CVE-2026-6654 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.2.16

Fixed versions

  • 0.2.16

Solution

Upgrade to version 0.2.16 or above.

Impact 5.1 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-415: Double Free
  • CWE-416: Use After Free

Source file

cargo/thin-vec/CVE-2026-6654.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:12 +0000.