{"id":"CVE-2026-6654","published":"2026-04-20T10:05:52Z","modified":"2026-07-15T00:41:16Z","title":"Use-After-Free and Double-Free in IntoIter::drop when element drop panics","vendor":"Mozilla","product":"thin-vec","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00168,"percentile":0.03441,"provenance":"source"},"cwes":[{"id":"CWE-415","name":"Double Free"},{"id":"CWE-416","name":"Use After Free"},{"id":"CWE-1341","name":"Multiple Releases of Same Resource or Handle"}],"references":[{"url":"https://github.com/mozilla/thin-vec/security/advisories/GHSA-xphw-cqx3-667j","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-6654","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2459689","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6654.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":4.3,"factors":[{"name":"EPSS percentile","points":0.69},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"mozilla","ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-20T13:14:05.808412Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"thin-vec","vulnerableRanges":["<0.2.16",">=0.0.0-0, <0.2.16"],"patched":["0.2.16"],"from":["GHSA-xphw-cqx3-667j","RUSTSEC-2026-0103"],"provenance":"source"}],"summary":{"text":"The flaw is a use-after-free and double-free in the IntoIter::drop and ThinVec::clear functions of the thin_vec crate, which is Mozilla's thin-vec product. When a panic occurs in ptr::drop_in_place, the length is not reset to zero, so already-dropped elements can be accessed or freed again. An attacker with local access and no privileges can trigger the condition through normal use of the affected functions, as no user interaction or special configuration is required. The impact is limited to confidentiality and integrity, with no direct availability impact indicated.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:56Z"},"euvd":{"id":"EUVD-2026-23832","exploited":false,"provenance":"source"}}