Vulnerabilities

CVE-2024-8796

Medium 5.3 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2024-09-17
Last modified
2026-06-17
Assigned by
disclosure@synopsys.com
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.6 % higher than 47 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
devise-two-factor (RubyGems) 1.0.0 Affected
devise-two-factor (RubyGems) ≥ 4.0.0, < 6.0.0 Affected
Tinfoilsecurity Devise-two-factor 1.0.0 Affected
Tinfoilsecurity Devise-two-factor ≥ 4.0.0, < 6.0.0 Affected

Weakness type

  • CWE-331: Insufficient Entropy

    The product uses an algorithm or scheme that produces insufficient entropy, leaving patterns or clusters of values that are more likely to occur than others.

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities