CVE Vulnerabilities

CVE-2024-8796

Insufficient Entropy

Published: Sep 17, 2024 | Modified: Sep 30, 2024
CVSS 3.x
5.3
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

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.

Weakness

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.

Affected Software

Name Vendor Start Version End Version
Devise-two-factor Tinfoilsecurity 4.0.0 (including) 6.0.0 (excluding)
Devise-two-factor Tinfoilsecurity 1.0.0 (including) 1.0.0 (including)
Ruby-devise-two-factor Ubuntu esm-apps/focal *
Ruby-devise-two-factor Ubuntu esm-apps/jammy *
Ruby-devise-two-factor Ubuntu esm-apps/xenial *
Ruby-devise-two-factor Ubuntu focal *
Ruby-devise-two-factor Ubuntu jammy *
Ruby-devise-two-factor Ubuntu upstream *

Potential Mitigations

References