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
root.io logo minimus.io logo echo.ai logo

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

NameVendorStart VersionEnd Version
Devise-two-factorTinfoilsecurity4.0.0 (including)6.0.0 (excluding)
Devise-two-factorTinfoilsecurity1.0.0 (including)1.0.0 (including)
Ruby-devise-two-factorUbuntuesm-apps/focal*
Ruby-devise-two-factorUbuntuesm-apps/jammy*
Ruby-devise-two-factorUbuntuesm-apps/xenial*
Ruby-devise-two-factorUbuntufocal*
Ruby-devise-two-factorUbuntujammy*
Ruby-devise-two-factorUbuntuupstream*

Potential Mitigations

References