Skip to content

RUSTSEC-2026-0103: Use-After-Free and Double Free in thin-vec 0.2.13 #416

Description

@Loirooriol

Seems that Firefox fixed their vendored thin-vec, but didn't update Stylo's Cargo.toml...

error[vulnerability]: Use-After-Free and Double Free in IntoIter::drop When Element Drop Panics
   ┌─ /home/oriol/src/stylo/Cargo.lock:96:1
   │
96 │ thin-vec 0.2.13 registry+https://github.com/rust-lang/crates.io-index
   │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ security vulnerability detected
   │
   ├ ID: RUSTSEC-2026-0103
   ├ Advisory: https://rustsec.org/advisories/RUSTSEC-2026-0103
   ├ A Double Free / Use-After-Free (UAF) vulnerability has been identified in the
     `IntoIter::drop` and `ThinVec::clear` implementations of the `thin-vec` crate.
     Both vulnerabilities share the same root cause and can trigger memory
     corruption using only safe Rust code - no unsafe blocks required. Undefined
     Behavior has been confirmed via Miri and AddressSanitizer (ASAN).

https://rustsec.org/advisories/RUSTSEC-2026-0103

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions