Time of Check Time of Use (TOCTOU) Affecting devise package, versions <4.6.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.44% (75th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-DEVISE-173787
  • published17 Mar 2019
  • disclosed14 Mar 2019
  • creditFredrik Eckardt

Introduced: 14 Mar 2019

CVE-2019-5421  (opens in a new tab)
CWE-264  (opens in a new tab)

How to fix?

Upgrade devise to version 4.6.0 or higher.

Overview

devise is a flexible authentication solution for Rails with Warden.

Affected versions of this package are vulnerable to Time of Check Time of Use (TOCTOU). The increment_failed_attempts function within the Devise::Models::Lockable class is not concurrency safe.

CVSS Scores

version 3.1