Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. thin-vec
  4. ›
  5. GHSA-xphw-cqx3-667j

GHSA-xphw-cqx3-667j: thin-vec: Use-After-Free and Double Free in IntoIter::drop When Element Drop Panics

April 15, 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

Code Behaviors & Features

Detect and mitigate GHSA-xphw-cqx3-667j 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 7.3 HIGH

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

Learn more about CVSS

Weakness

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

Source file

cargo/thin-vec/GHSA-xphw-cqx3-667j.yml

Spotted a mistake? Edit the file on GitLab.

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

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