
CVE catalog
CVE-2024-8796
ruby-devise-two-factor: CVE-2024-8796
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.64% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby-devise-two-factor | bookworm | 4.0.2-1 | vulnerable |
| Ubuntu | ruby-devise-two-factor | 16.04 | 1.1.0-1 | vulnerable |
| Ubuntu | ruby-devise-two-factor | 16.04 | 2.0.0-1 | vulnerable |
| Ubuntu | ruby-devise-two-factor | pro | 3.1.0-2 | vulnerable |
| Ubuntu | ruby-devise-two-factor | pro | 4.0.0-2 | vulnerable |
| Ubuntu | ruby-devise-two-factor | pro | 4.0.0-2ubuntu0.1~esm1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby-devise-two-factor | source | bookworm | (unfixed) | not yet assigned | Not reported | [1082382] |
| Ubuntu | ruby-devise-two-factor | deb | pro | 4.0.0-2ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2024-8796 | Not reported |
Notes
[bookworm] ruby-devise-two-factor: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ruby-devise-two-factor]Affected
Details (2)
4.0.2-1· all · bookwormAffected
dsa · ruby-devise-two-factor · debian · bookworm; dsa · ruby-devise-two-factor · debian · 12
4.0.2-1· all · bookwormAffected
dsa · ruby-devise-two-factor · debian · bookworm; dsa · ruby-devise-two-factor · debian · 12
Observed: