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


0.0
medium

Snyk CVSS

    Attack Complexity Low
    User Interaction Required

    Threat Intelligence

    EPSS 0.31% (70th percentile)
Expand this section
NVD
9.8 critical

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 ID SNYK-RUBY-DEVISE-173787
  • published 17 Mar 2019
  • disclosed 14 Mar 2019
  • credit Fredrik Eckardt

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.