GitHub Advisory Database
GHSA-73rf-6mrf-759q
devise Time-of-check Time-of-use Race Condition vulnerability
Details
Devise ruby gem before 4.6.0 when the lockable module is used is vulnerable to a time-of-check time-of-use (TOCTOU) race condition due to increment_failed_attempts within the Devise::Models::Lockable class not being concurrency safe.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| RubyGems | devise | All versions before 4.6.0 (fixed in 4.6.0) |