Skip to content

RUSTSEC-2026-0221 `event-listener` allows `!Send` tags to cross thread boundaries via `StackSlot`

Unknown
Published
Updated
Exploit status
No public exploit known

Description

Affected versions of event-listener unconditionally implement Send and
Sync for StackSlot<'_, T>, the stack-allocated listener type created
by the listener! macro.

This allows a !Send tag type set via Event::with_tag to be moved to
another thread and accessed via StackSlot::wait, causing a data race in safe
code.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
crates.io event-listener(crates.io) >= 5.1.0, < 5.4.2 5.4.2 Fixed

Affected products

ProductAffected versionsFixed in
crates.io event-listener(crates.io) >= 5.1.0, < 5.4.2 5.4.2

References