Vulnerability in Devise-Two-Factor

CVE-2024-8796

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.

EPSS: 0.006 (47.0th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2024-8796?
CVE-2024-8796 is a medium-severity vulnerability in Devise-Two-Factor, classified under Insufficient Entropy. CVSS score: 5.3/10. Published 2024-09-17.
How severe is CVE-2024-8796?
Medium severity. CVSS v3 base score is 5.3 out of 10.
Is CVE-2024-8796 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.