GHSA-qjxf-mc72-wjr2 · Severity: medium · Ecosystem: rubygems — Devise-Two-Factor Authentication Uses Insufficient Default OTP Shared Secret Length
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.
Conclusion & alert: CVE-2024-8796 is rated Moderate Risk (40.6/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.24%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-04-30 | 0.32% | 0.24% | -0.08% |
| 2 | 2026-02-06 | 0.19% | 0.32% | +0.13% |
| 3 | 2025-11-09 | — | 0.19% | — |
Full EPSS history (8 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 6.0 | 4.0 | MEDIUM |
|
— | — | [email protected] |
| 5.3 | 3.1 | MEDIUM |
|
1.6 | 3.6 | [email protected] |
| 5.3 | 3.1 | MEDIUM |
|
1.6 | 3.6 | [email protected] |
GHSA-qjxf-mc72-wjr2 · Severity: medium · Ecosystem: rubygems — Devise-Two-Factor Authentication Uses Insufficient Default OTP Shared Secret Length
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2024-8796 not yet assigned priority: Debian including 1 source packages (ruby-devise-two-factor), 2 status rows across 2 suites (bookworm, bullseye): open 2. | https://security-tracker.debian.org/tracker/CVE-2024-8796 |
ubuntu
|
medium | CVE-2024-8796 medium priority: Ubuntu including 1 source packages (ruby-devise-two-factor), 8 status rows across 8 suites (focal, jammy, noble, oracular, plucky, questing, upstream, xenial): not-affected 3, released 3, DNE 1, needed 1. | https://ubuntu.com/security/CVE-2024-8796 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| tinfoilsecurity | devise-two-factor | >= 4.0.0, < 6.0.0 | cpe:2.3:a:tinfoilsecurity:devise-two-factor:*:*:*:*:*:*:*:* |
| tinfoilsecurity | devise-two-factor | 1.0.0 | cpe:2.3:a:tinfoilsecurity:devise-two-factor:1.0.0:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/devise-two-factor/devise-two-factor/security/advisories/GHSA-qjxf-mc72-wjr2 | Mitigation Vendor Advisory |