# CVE-2026-6654: Use-After-Free and Double-Free in IntoIter::drop when element drop panics

- Severity: Medium 5.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 3% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-14T12:00:00.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-xphw-cqx3-667j, RUSTSEC-2026-0103
- Weaknesses: CWE-415, CWE-416, CWE-1341
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mozilla

## 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.

(As written by CVE List.)

## Affected

- Mozilla thin-vec: 0.2.15 (not affected: from 0.2.16 up to *)
- firefox: no versions given
- gjs: no versions given
- rust: no versions given
- thunderbird: no versions given
- rust-toolset:rhel8/rust: no versions given
- thin-vec (crates.io): before 0.2.16; from 0.0.0-0 before 0.2.16

## Every score

- CISA-ADP: CVSS:3.1 5.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- redhat-SADP: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H`
- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H`
- RustSec Advisory Database: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H`
- NVD: CVSS:3.1 5.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/mozilla/thin-vec/security/advisories/GHSA-xphw-cqx3-667j> (exploit, vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-6654> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2459689> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6654.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6654> (advisory)
- <https://github.com/mozilla/thin-vec> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0103.html> (advisory, web)
- <https://crates.io/crates/thin-vec> (package)
- <https://github.com/mozilla/thin-vec/commit/df64748355222525c344ecd9d2c9f59a662e1678> (web)

## Sources

- CVE List: [CVE-2026-6654](https://www.cve.org/CVERecord?id=CVE-2026-6654), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-xphw-cqx3-667j](https://github.com/advisories/GHSA-xphw-cqx3-667j), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2026-0103](https://rustsec.org/advisories/RUSTSEC-2026-0103.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2026-6654](https://nvd.nist.gov/vuln/detail/CVE-2026-6654), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-6654 · Whole record: https://cve.day/CVE-2026-6654.json · Rebuilt by cve.day 2026-11-25T22:59:19.032Z
