VDB

CVE-2024-8796

CVE-2024-8796 PUBLISHED CVSS 6 MEDIUM

Insufficient Default OTP Shared Secret Length

Reported by snps · Published September 17, 2024

devise-two-factor is fixed in 6.0.0 (RubyGems)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
devise-two-factorRubyGems6.0.0
devise-two-factortinfoilsecurity6.0.0
devise-two-factordevise-two-factor6.0.0

Risk scores

CVSS 4.0
6
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

Affected products

VendorProductVersions
devise-two-factordevise-two-factor4.0.0, 1.0.0
RubyGemsdevise-two-factor4.0.0, 1.0.0
devise-two-factordevise-two-factor4.0.0, 1.0.0

Timeline

  • Sep 17, 2024 CVE Published
  • Sep 17, 2024 PoC Published
  • Sep 18, 2024 EPSS Score (30 in total, the first dated here)
  • Sep 20, 2024 CVE Updated
  • Oct 5, 2024 Coalition ESS Score (6 in total, the first dated here)
  • Mar 17, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-8796
vulnetix vdb fixes CVE-2024-8796

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-8796/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›