Skip to main content
← All vulnerabilities
CVE-2024-8796GHSA-QJXF-MC72-WJR2

Insufficient Default OTP Shared Secret Length

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.0.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

Under the default configuration, Devise-Two-Factor versions >= 2.2.0 & < 6.0.0 generate TOTP shared secrets that are 120 bits instead of the 128-bit minimum defined by RFC 4226. Using a shared secret shorter than the minimum to generate a multi-factor authentication code could make it easier for an attacker to guess the shared secret and generate valid TOTP codes.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • devise-two-factor

    From 4.0.0 · fixed in 6.0.0

  • devise-two-factorRubyGems

    From 4.0.0 · fixed in 6.0.0

  • devise-two-factorRubyGems

    1.0.0

References 1

GitHub · devise-two-factor/devise-two-factor