CVE Catalog

CVE-2024-8796

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Summary

Under the default configuration, Devise-Two-Factor versions >= 2.2.0 and < 6.0.0 generate TOTP shared secrets that are 120 bits instead of the 128-bit minimum defined by RFC 4226. A shorter shared secret makes it easier for an attacker to guess the secret and generate valid TOTP codes.

Risk Assessment

This weakens multi-factor authentication, increasing the risk of MFA bypass through TOTP secret guessing. It can lead to unauthorized account access.

Recommendation

Update Devise-Two-Factor to version 6.0.0 or later. Consider regenerating TOTP secrets for existing users.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS