Security mailing lists by PureSourceCode

CVE-2024-8796

MEDIUM 6.0CVSS 4.0

Devise-Two-Factor Authentication Uses Insufficient Default OTP Shared Secret Length

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.

Published
17 Sep 2024
Last modified
17 Jun 2026
Assigned by
disclosure@synopsys.com
NVD status
Analyzed
Weakness
CWE-331
Also known as
GHSA-qjxf-mc72-wjr2
Sources
NVDJSONOSV GHSA-qjxf-mc72-wjr2JSON

Scores

SourceScored byVersionScoreVector / decision
NVD disclosure@synopsys.com (Secondary) CVSS 4.0 MEDIUM 6.0 CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD disclosure@synopsys.com (Secondary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD tinfoilsecurity devise-two-factor
cpe:2.3:a:tinfoilsecurity:devise-two-factor:*:*:*:*:*:*:*:*
>= 4.0.0, < 6.0.0 6.0.0
NVD tinfoilsecurity devise-two-factor
cpe:2.3:a:tinfoilsecurity:devise-two-factor:1.0.0:*:*:*:*:*:*:*
= 1.0.0
OSV RubyGems devise-two-factor >= 4.0.0, < 6.0.0 6.0.0
OSV RubyGems devise-two-factor = 1.0.0

References

History

  • 25 Nov 2026 20:56 UTC · NVD: first stored (published 17 Sep 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Sep 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.