Live threats

All CVEs / Tinfoilsecurity

CVE-2024-8796Tinfoilsecurity Devise-two-factor

Medium 6.0

Priority
36
CVSS 4.0
6.0
EPSS
0.7%
probability of exploitation in 30 days · percentile 48
Auth required
Yes
Published
Sep 17, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-331
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Devise-two-factor.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems devise-two-factor ≥ 4.0.0 < 6.0.0 6.0.0 gem "devise-two-factor", ">= 6.0.0"
RubyGems devise-two-factor 1.0.0 no fixed version —

Per OSV / GitHub Advisories (GHSA-qjxf-mc72-wjr2). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
tinfoilsecuritydevise-two-factor≥ 4.0.0 < 6.0.0
tinfoilsecuritydevise-two-factor1.0.0

Official sources

References

Links published by the sources. Open them with care.