{"id":"CVE-2019-5421","published":"2019-04-03T14:21:37Z","modified":"2024-08-04T19:54:53Z","title":"Plataformatec Devise version 4.5.0 and earlier, using the lockable module contains a CWE-367 vulnerability in The…","vendor":"Plataformatec","product":"Devise ruby gem","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01556,"percentile":0.75789,"provenance":"source"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://github.com/plataformatec/devise/issues/4981","tags":["x_refsource_MISC"]},{"url":"https://github.com/plataformatec/devise/pull/4996","tags":["x_refsource_MISC"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":15.16}]},"vendorSlug":"plataformatec","affectedVersions":[{"vendor":"Plataformatec","product":"Devise ruby gem","versions":["4.5.0 and earlier using the lockable module"]}],"affected":[{"ecosystem":"RubyGems","package":"devise","vulnerableRanges":["<4.6.0"],"patched":["4.6.0"],"from":["GHSA-73rf-6mrf-759q"],"provenance":"source"}],"summary":{"text":"The Devise Ruby gem, version 4.5.0 and earlier, has a race condition (Time-of-check Time-of-use) in the Devise::Models::Lockable class, specifically in the increment_failed_attempts method in lib/devise/models/lockable.rb, when the lockable module is in use. An attacker with network access can send multiple concurrent login requests, which can prevent the account lockout from triggering so that brute force attacks are not blocked.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:02Z"},"euvd":{"id":"EUVD-2019-0372","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2013-0233","published":"2013-04-25","fixed":"2.2.3","kev":false},{"cve":"CVE-2015-8314","published":"2023-12-12","fixed":"3.5.4","kev":false},{"cve":"CVE-2019-5421","published":"2019-04-03","fixed":"4.6.0","kev":false},{"cve":"CVE-2019-16109","published":"2019-09-08","fixed":"4.7.1","kev":false,"link":{"from":"CVE-2019-5421","to":"CVE-2019-16109","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:devise","fromFixed":"4.6.0","toFixed":"4.7.1","daysApart":158}]}},{"cve":"CVE-2026-32700","published":"2026-03-18","fixed":"5.0.3","kev":false},{"cve":"CVE-2026-40295","published":"2026-05-22","fixed":"5.0.4","kev":false}],"package":"RubyGems:devise"}}