Skip to content

CVE-2024-8796 Insufficient Default OTP Shared Secret Length

MediumCVSS 6.0 EPSS 0.64%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

5 packages: 4 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
debian/ruby-devise-two-factor(Debian 12) = 4.0.2-1; All versions No fix listed No fix yet
devise-two-factor = 1.0.0; >= 4.0.0, < 6.0.0 6.0.0 Fixed
rubygems devise-two-factor(RubyGems) = 1.0.0; = 4.0.0; = 4.0.1; = 4.0.2 +5 more 6.0.0 Fixed
tinfoilsecurity devise-two-factor = 1.0.0; >= 4.0.0, < 6.0.0 6.0.0 Fixed
ubuntu/ruby-devise-two-factor(Ubuntu 22.04) < 4.0.0-2ubuntu0.1~esm1 4.0.0-2ubuntu0.1~esm1 Fixed

Affected products

ProductAffected versionsFixed in
rubygems devise-two-factor(RubyGems) >= 4.0.0, < 6.0.0 6.0.0
rubygems devise-two-factor(RubyGems) = 4.0.0 No fix listed
rubygems devise-two-factor(RubyGems) = 4.0.1 No fix listed
rubygems devise-two-factor(RubyGems) = 4.0.2 No fix listed
rubygems devise-two-factor(RubyGems) = 4.1.0 No fix listed
rubygems devise-two-factor(RubyGems) = 4.1.1 No fix listed
rubygems devise-two-factor(RubyGems) = 5.0.0 No fix listed
rubygems devise-two-factor(RubyGems) = 5.1.0 No fix listed
rubygems devise-two-factor(RubyGems) = 1.0.0 No fix listed
debian/ruby-devise-two-factor(Debian:12) All versions No fix listed
debian/ruby-devise-two-factor(Debian:12) = 4.0.2-1 No fix listed
ubuntu/ruby-devise-two-factor(Ubuntu:22.04) < 4.0.0-2ubuntu0.1~esm1 4.0.0-2ubuntu0.1~esm1
devise-two-factor >= 4.0.0, < 6.0.0 6.0.0
devise-two-factor = 1.0.0 No fix listed
tinfoilsecurity devise-two-factor >= 4.0.0, < 6.0.0 6.0.0
tinfoilsecurity devise-two-factor = 1.0.0 No fix listed

References