ADVISORIES

GitHub Advisory Database

GHSA-73rf-6mrf-759q

devise Time-of-check Time-of-use Race Condition vulnerability

Moderate CVE-2019-5421

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

EcosystemPackageAffected versions
RubyGemsdevise
All versions before 4.6.0 (fixed in 4.6.0)

References