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

    Threat Intelligence

    EPSS
    0.34% (72nd 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 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.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
4.4 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    Low
  • Availability (A)
    Low
Expand this section

NVD

9.8 critical