event-listener is vulnerable to Race Condition
40
CVE Score
Medium
Race Condition
Affected versions of event-listener unconditionally implement Send and Sync for StackSlot<'_, T>, the stack-allocated listener type created by the listener! macro. That lets a !Send tag set via Event::with_tag be moved to another thread and accessed through StackSlot::wait, causing a data race in safe Rust. The fix adds a T: Send bound on the Send/Sync implementations for StackSlot.
Upgrade the event-listener library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and create an Event with Event::with_tag using a !Send tag type, then move a listener!-created StackSlot across threads.
5.1.0 - 5.4.1
Fixed in 5.4.2event-listener is vulnerable to Race Condition in versions 5.1.0 - 5.4.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.