Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft input triggering panic
-
DeliveryCall IntoIter::drop or clear
-
ExploitElement drop_in_place panics
-
ExecutionLength field not reset
-
PersistSubsequent code reads freed memory
-
ImpactInformation leaked to attacker
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Double free prevention
|
| Exploitation Conditions | Exploitation requires all of the following: (1) the application must link thin_vec directly or transitively; (2) code must invoke IntoIter::drop or ThinVec::clear on a non-empty vector; (3) a panic must occur during ptr::drop_in_place execution for one or more elements in the vector; (4) the application must subsequently access the corrupted vector structure via unsafe code or methods that bypass bounds checking; (5) attacker must have local execution capability to trigger the panic condition (e.g., via malicious input to a local service, library function, or system utility). The vulnerability does NOT affect: (a) vectors whose elements have infallible drop implementations (most standard types), (b) code that never calls clear or drop explicitly, (c) safe Rust APIs that do not permit arbitrary reads after corruption. Default configurations of applications using thin_vec with panic-free drop implementations are not vulnerable; only deliberate panic injection during element cleanup or unsafe code that manually manipulates vector state exposes this flaw. |
| Impact | This vulnerability presents a localized, low-probability threat despite a moderate CVSS score. The CVSS:3.1/AV:L/AC:L/PR:N/UI:N vector correctly identifies local-only attack surface with minimal complexity, but the actual risk is constrained by multiple factors: (1) EPSS score of 0.02% (percentile 5%) indicates negligible real-world exploitation probability, suggesting this flaw requires either deliberate panic injection or highly specific application logic; (2) the vulnerability is tagged for information disclosure only (tag: Information Disclosure), not arbitrary code execution, limiting impact scope; (3) Rust's ownership model and bounds-checking typically prevent exploitation of memory corruption within safe code, restricting practical attack surface to unsafe blocks in the crate itself or direct manipulation of vector internals. The discrepancy between CVSS severity (5.1/moderate) and EPSS exploitation likelihood (0.02%) suggests this is a theoretically valid memory safety issue but one that requires deliberate triggering or non-standard deployment patterns. Organizations should prioritize patching in applications that (a) use thin_vec in unsafe contexts, (b) expose thin_vec-backed data structures to untrusted input that could trigger panics, or (c) depend on memory confidentiality in the presence of local attackers; however, this is not a critical exploit vector for most standard applications. |
| Exploit ScenarioDerived | A Rust application using thin_vec processes untrusted network data and constructs custom drop implementations that panic under specific input patterns. An attacker crafts input that triggers a panic during IntoIter::drop or ThinVec::clear, causing the length field to remain non-zero while the underlying allocation is freed. The application then re-accesses the corrupted vector, reading data from the freed memory region, leaking sensitive information such as cryptographic keys or session tokens stored elsewhere in the heap. Local access is required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 20, 2026
Double-free and use-after-free vulnerability in Mozilla's thin_vec Rust crate allows local attackers to read sensitive memory via panic-induced length corruption in IntoIter::drop and ThinVec::clear functions. The vulnerability occurs when a panic in ptr::drop_in_place fails to reset the vector length to zero, leaving dangling pointers accessible to subsequent operations. Affected applications linking thin_vec versions prior to the patched release face local information disclosure risk with low real-world exploitation probability (EPSS 0.02%).
RemediationAI
Update thin_vec to the patched version released by Mozilla - consult the GitHub Security Advisory (https://github.com/mozilla/thin-vec/security/advisories/GHSA-xphw-cqx3-667j) for the exact fixed version number and run cargo update thin_vec to pull the fix into your project. No known workarounds exist for this memory safety issue short of removing thin_vec dependency; however, applications can reduce immediate risk by auditing usage of thin_vec in unsafe blocks and eliminating any code that deliberately constructs panic conditions during drop. For projects where immediate upgrade is infeasible, restrict thin_vec usage to non-sensitive data structures and avoid exposing vector internals to untrusted input that could trigger panics; note that this mitigation is defense-in-depth only and does not eliminate the vulnerability.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in cargo
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The thin_vec crate provides a space-optimized vector implementation for Rust applications. The vulnerability resides in memory management routines, specifically the drop implementation for IntoIter and the clear method for ThinVec. When drop_in_place panics during element destruction, the exception handling path fails to decrement the vector's length field, leaving the internal state inconsistent - the allocator believes the vector contains valid elements when it actually points to freed memory. Subsequent accesses to this corrupted vector structure trigger use-after-free conditions. CWE-415 classifies this as a double-free/use-after-free defect, a memory safety violation critical in systems code but contained in Rust by the type system when exploitation is attempted across safe API boundaries.
Know when Thin Vec gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
Double-Free / Use-After-Free (UAF) in the IntoIter::drop and ThinVec::clear functions in the thin_vec crate. A panic in ptr::drop_in_place skips setting the length to zero.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-23832
GHSA-xphw-cqx3-667j
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB