Insufficient Entropy Affecting ruby-devise-two-factor package, versions *


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.14% (36th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insufficient Entropy vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UBUNTU1604-RUBYDEVISETWOFACTOR-10288847
  • published1 Jun 2025
  • disclosed17 Sept 2024

Introduced: 17 Sep 2024

CVE-2024-8796  (opens in a new tab)
CWE-331  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:16.04 ruby-devise-two-factor.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-devise-two-factor package and not the ruby-devise-two-factor package as distributed by Ubuntu. See How to fix? for Ubuntu:16.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1