Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. devise-two-factor
  4. ›
  5. CVE-2024-0227

CVE-2024-0227: Improper Restriction of Excessive Authentication Attempts

January 12, 2024

Devise-Two-Factor does not throttle or otherwise restrict login attempts at the server by default. When combined with the Time-based One Time Password algorithm’s (TOTP) inherent entropy limitations, it’s possible for an attacker to bypass the 2FA mechanism through brute-force attacks.

References

  • github.com/advisories/GHSA-chcr-x7hc-8fp8
  • github.com/devise-two-factor/devise-two-factor/security/advisories/GHSA-chcr-x7hc-8fp8
  • nvd.nist.gov/vuln/detail/CVE-2024-0227

Code Behaviors & Features

Detect and mitigate CVE-2024-0227 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.0.0 up to 5.0.0

Solution

Unfortunately, there is no solution available yet.

Impact 5 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-307: Improper Restriction of Excessive Authentication Attempts

Source file

gem/devise-two-factor/CVE-2024-0227.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:56 +0000.