CVE-2024-8796

MEDIUMCVSS 5.3/10EPSS 0.64%

Last modified

CVE-2024-8796 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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.. EPSS estimates a 0.64% chance of exploitation in the next 30 days.

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.

Metrics

Weakness Enumeration

Affected Software

VendorProductVersions
TinfoilsecurityDevise-Two-Factor>= 4.0.0, < 6.0.0
TinfoilsecurityDevise-Two-Factor1.0.0

References

Timeline

Published
Last Modified
Status
Analyzed

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 score of 5.3/10 (MEDIUM severity). The EPSS model estimates a 0.64% probability of exploitation in the next 30 days.
How do I fix CVE-2024-8796?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2024

Are you affected by CVE-2024-8796?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST