CVE-2026-6654

Use-After-Free and Double-Free in IntoIter::drop when element drop panics

Published Apr 20, 2026 CVSS 3.1 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-xphw-cqx3-667j thin-vec: Use-After-Free and Double Free in IntoIter::drop When Element Drop Panics
History
Type Values Removed Values Added
CPEs cpe:2.3:a:mozilla:thin-vec:0.2.15:*:*:*:*:rust:*:*
Type Values Removed Values Added
First Time appeared Mozilla
Mozilla thin-vec
Vendors & Products Mozilla
Mozilla thin-vec
Type Values Removed Values Added
Weaknesses CWE-415
Metrics cvssV3_1

{'score': 5.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
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.
Title Use-After-Free and Double-Free in IntoIter::drop when element drop panics
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mozilla
Published
Updated
Jul 15, 2026, 12:41 AM
Reserved
Apr 20, 2026, 7:02 AM
Status
Modified
Published
Apr 20, 2026, 11:16 AM
Modified
Oct 26, 2026, 9:10 PM
Severity
Important
Public date
Apr 20, 2026, 10:05 AM