CVE catalog

CVE-2024-8796

ruby-devise-two-factor: CVE-2024-8796

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
0.64% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianruby-devise-two-factorbookworm4.0.2-1vulnerable
Ubunturuby-devise-two-factor16.041.1.0-1vulnerable
Ubunturuby-devise-two-factor16.042.0.0-1vulnerable
Ubunturuby-devise-two-factorpro3.1.0-2vulnerable
Ubunturuby-devise-two-factorpro4.0.0-2vulnerable
Ubunturuby-devise-two-factorpro4.0.0-2ubuntu0.1~esm1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-devise-two-factorsourcebookworm(unfixed)not yet assignedNot reported[1082382]
Ubunturuby-devise-two-factordebpro4.0.0-2ubuntu0.1~esm1Not reportedUBUNTU-CVE-2024-8796Not reported

[Debian bug #1082382]

Notes

[bookworm] ruby-devise-two-factor: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 4.0.2-1 · all · bookworm

      Affected

      dsa · ruby-devise-two-factor · debian · bookworm; dsa · ruby-devise-two-factor · debian · 12

    • 4.0.2-1 · all · bookworm

      Affected

      dsa · ruby-devise-two-factor · debian · bookworm; dsa · ruby-devise-two-factor · debian · 12

Observed:

References