CVE-2024-8796 — Vulnerability in devise-two-factor — CVE Details
Devise-Two-Factor Authentication Uses Insufficient Default OTP Shared Secret Length
Summary
Advisory Timeline
- First published September 17, 2024 (755 days ago).
- Last revised September 20, 2024 — 3 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install devise-two-factor -v 6.0.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| devise-two-factor | rubygems | 4.0.0, 4.0.1, 4.0.2, 4.1.0 (+3 more) | 6.0.0 |
| devise-two-factor | rubygems | 1.0.0 | No fix available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-331
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/devise-two-factor/devise-two-factor/security/advisories/GHSA-qjxf-mc72-wjr2WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-8796ADVISORY
- https://github.com/devise-two-factor/devise-two-factor/commit/cc6f34423d9c6af9f3e02be478c3c40dc7462e19WEB
- https://github.com/devise-two-factor/devise-two-factorPACKAGE
Frequently Asked Questions
- What is CVE-2024-8796?
- Devise-Two-Factor Authentication Uses Insufficient Default OTP Shared Secret Length This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.3/10).
- How do I check if my project is affected by CVE-2024-8796?
- CVE-2024-8796 affects devise-two-factor. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-8796 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2026-107715MEDIUM
Mechanize sends credential headers to another host after an HTTP redirect
- CVE-2026-107399MEDIUM
Mechanize sends credential headers to another origin after a meta refresh
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies