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.
{
"github_reviewed": true,
"cwe_ids": [
"CWE-367"
],
"github_reviewed_at": "2020-06-16T21:21:17Z",
"nvd_published_at": null,
"severity": "MODERATE"
}