CVE-2024-8796

Insufficient Default OTP Shared Secret Length

State
Published
Severity
6.0 Medium
Published
Sep 17, 2024
Updated
Sep 20, 2024
Reserved
Sep 13, 2024

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.06.0 MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NSNPS
3.15.3 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:NSNPS

Weaknesses

Affected Products

ProductVersions
devise-two-factordevise-two-factor
  • 4.0.0 to before 6.0.0Affected
  • 1.0.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.