Skip to content
OpenAdvisories
Medium CVE-2019-5421 EUVD-2019-0372GHSA-73rf-6mrf-759q

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

Published Apr 3, 2019 · Updated Aug 4, 2024 · Assigned by hackerone

Description

Plataformatec Devise version 4.5.0 and earlier, using the lockable module contains a CWE-367 vulnerability in The `Devise::Models::Lockable` class, more specifically at the `#increment_failed_attempts` method. File location: lib/devise/models/lockable.rb that can result in Multiple concurrent requests can prevent an attacker from being blocked on brute force attacks. This attack appear to be exploitable via Network connectivity - brute force attacks. This vulnerability appears to have been fixed in 4.6.0 and later.

Affected products

VendorProductAffectedFixed
Plataformatec Devise ruby gem 4.5.0 and earlier using the lockable module —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 ruby-devise 4.5.0-3 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS ruby-devise 4.5.0-3 —
Ubuntu 18.04 LTS ruby-devise No fix yet —
Ubuntu 16.04 LTS gitlab No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems devise < 4.6.0 4.6.0 GHSA-73rf-6mrf-759q

References