cve.bz

CVE-2024-8796 tinfoilsecurity devise-two-factor: Insufficient Entropy

6.0 mediumEPSS 0.6%Fix available

Medium (6.0) in tinfoilsecurity devise-two-factor. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in devise-two-factor 6.0.0.

On this page
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.

Severity

CVSS 4.0

6.0 medium
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

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-09-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-331 Insufficient Entropy
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-8796 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-8796?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-8796?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-8796 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
devise-two-factorfrom 4.0.0 before 6.0.0
devise-two-factor1.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-qjxf-mc72-wjr2RubyGemsdevise-two-factor>=4.0.0 <6.0.06.0.0
GHSA-qjxf-mc72-wjr2RubyGemsdevise-two-factor1.0.0no fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12ruby-devise-two-factorno fix listedDEBIAN-CVE-2024-8796
Ubuntu16.04:LTSruby-devise-two-factorno fix listedUBUNTU-CVE-2024-8796
UbuntuPro:20.04:LTSruby-devise-two-factor3.1.0-2ubuntu0.1~esm1UBUNTU-CVE-2024-8796 USN-7050-1
UbuntuPro:22.04:LTSruby-devise-two-factor4.0.0-2ubuntu0.1~esm1UBUNTU-CVE-2024-8796 USN-7050-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-59 Session Credential Falsification through Prediction Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON