CVE-2024-8796

published 17 Sep 2024 · updated 20 Sep 2024

Insufficient Default OTP Shared Secret Length

5.3MediumCVSS 5.3EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 6.0.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
devise-two-factor=1.0.0, >=4.0.0 <6.0.06.0.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-8796 severity on Zeptric[![CVE-2024-8796](https://zeptric.io/badge/cve/CVE-2024-8796.svg)](https://zeptric.io/cve/CVE-2024-8796)