CVE-2026-6654: Use-After-Free and Double-Free in IntoIter::drop when element drop panics
Vulnerability summary
CVE-2026-6654 is a medium (CVSS 5.1) Double Free vulnerability in mozilla thin-vec. EPSS estimates a 0.17% chance of exploitation in the next 30 days, higher than 6.7% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 5.1, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 20-04-2026PublishedVulnerability first disclosed.
- 15-07-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.1MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated5.1MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · WolfiEcosystem advisory · calculated5.1MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · ChainguardEcosystem advisory · calculated5.1MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · Crates.ioEcosystem advisory · calculated7.3HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:HDiffers
- NVDNIST5.1MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.17%
Chance of exploitation in the next 30 days
Percentile
7%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.17% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundThin Vec
Maturity: poc
Weaknesses
CWE · root cause- CWE-415Double FreeThe product calls free() twice on the same memory address.
- CWE-416Use After FreeThe product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
- CWE-1341Multiple Releases of Same Resource or HandleThe product attempts to close or release a resource or handle more than once, without any successful open between the close operations.
Affected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard4 products
- ruff< 0.15.11-r0 | < 0.15.10-r0
- ruff-python-formatter< 0.15.10-r0 | < 0.15.11-r0
- rust-analyzer< 20260413-r1
- typst< 0.14.2-r5
Wolfi3 products
- ruff< 0.15.11-r0 | < 0.15.10-r0
- ruff-python-formatter< 0.15.10-r0 | < 0.15.11-r0
- rust-analyzer< 20260413-r1
Crates.Io1 product
- thin-vec< 0.2.16 | ≥ 0.0.0-0, < 0.2.16
Debian1 product
- rust-thin-vecAll versions (No fix recorded) | < 0.2.17-1
Mozilla1 product
- thin-vec0.2.15
Ubuntu1 product
- rust-thin-vecAll versions (No fix recorded)
6 vendors · 11 products
References
13 links- github.com/mozilla/thin-vec/security/advisories/GHSA-xphw-cqx3-667jREPORTAdvisoryWEBExploitVendor Advisory
- github.com/mozilla/thin-vecPACKAGE
Show all 13 references
- crates.io/crates/thin-vecPACKAGE