All reports
Medium

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

Affected versions

RubyGemsdevise
Affected versions
< 4.6.0
Fixed version
4.6.0

Exploitation

CVE-2019-5421

Probability of exploitation in the next 30 days: 1.56%

FIRST EPSS · 2026-11-22

Description

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.

Links