CVE-2024-8796

CVE-2024-8796 is a medium-severity vulnerability in Tinfoilsecurity Devise-two-factor with a CVSS 3.x base score of 5.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-331.

Key facts

Description

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.

Frequently asked questions

What is CVE-2024-8796?
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.
How severe is CVE-2024-8796?
CVE-2024-8796 has a CVSS 3.x base score of 5.3, rated medium severity. It is exploitable over network with high attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
Is CVE-2024-8796 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (46th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-8796?
CVE-2024-8796 primarily affects Tinfoilsecurity Devise-two-factor. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2024-8796?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2024-8796 have an EU (EUVD) identifier?
Yes. CVE-2024-8796 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-2856.
When was CVE-2024-8796 published?
CVE-2024-8796 was published on 2024-09-17 and last updated on 2026-06-17.

References

Affected products (2)

More vulnerabilities in Tinfoilsecurity Devise-two-factor

All CVEs affecting Tinfoilsecurity Devise-two-factor →

Other CWE-331 vulnerabilities

Browse all CWE-331 vulnerabilities →