Double Free Affecting thin-vec package, versions <0.2.16


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.14% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-THINVEC-16118007
  • published21 Apr 2026
  • disclosed14 Apr 2026
  • creditUnknown

Introduced: 14 Apr 2026

CVE-2026-6654  (opens in a new tab)
CWE-415  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade thin-vec to version 0.2.16 or higher.

Overview

Affected versions of this package are vulnerable to Double Free in the IntoIter::drop and ThinVec::clear() functions when a panic occurs during element deallocation. An attacker can achieve memory corruption, including potential arbitrary code execution, by triggering a panic in the Drop implementation of an element, which can lead to use-after-free or double free conditions. This is only exploitable if the container holds heap-owning types and the Drop implementation of an element panics during deallocation.

CVSS Base Scores

version 4.0
version 3.1