{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-8796","published":"2024-09-17T18:15:05.443000Z","last_modified":"2026-06-17T08:23:19.257000Z","status":"Analyzed","cvss":{"version":"4.0","score":6.0,"severity":"MEDIUM","vector":"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","source":"disclosure@synopsys.com","primary":false},"auth":true,"cwes":["CWE-331"],"cpes":[{"criteria":"cpe:2.3:a:tinfoilsecurity:devise-two-factor:*:*:*:*:*:*:*:*","part":"a","vendor":"tinfoilsecurity","product":"devise-two-factor","version_start_including":"4.0.0","version_end_excluding":"6.0.0"},{"criteria":"cpe:2.3:a:tinfoilsecurity:devise-two-factor:1.0.0:*:*:*:*:*:*:*","part":"a","vendor":"tinfoilsecurity","product":"devise-two-factor","version":"1.0.0"}],"cpes_truncated":false,"vendors":["tinfoilsecurity"],"products":["tinfoilsecurity/devise-two-factor"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00679,"percentile":0.47534,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-qjxf-mc72-wjr2","ecosystem":"RubyGems","name":"devise-two-factor","purl":"pkg:gem/devise-two-factor","ranges":[{"introduced":"4.0.0","fixed":"6.0.0"}],"versions":["4.0.0","4.0.1","4.0.2","4.1.0","4.1.1","5.0.0","5.1.0"],"versions_truncated":false},{"advisory":"GHSA-qjxf-mc72-wjr2","ecosystem":"RubyGems","name":"devise-two-factor","purl":"pkg:gem/devise-two-factor","ranges":[],"versions":["1.0.0"],"versions_truncated":false}],"severity":"medium","priority_score":36,"links":{"html_es":"/es/cve/CVE-2024-8796/","html_en":"/en/cve/CVE-2024-8796/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-8796","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-8796"},"untrusted":{"vendor_name":"Tinfoilsecurity","product_name":"Devise-two-factor","desc_en":"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.","affected":[{"untrusted_vendor":"devise-two-factor","untrusted_product":"devise-two-factor","versions":[]}],"references":[{"url":"https://github.com/devise-two-factor/devise-two-factor/security/advisories/GHSA-qjxf-mc72-wjr2","tags":["Mitigation","Vendor Advisory"]}]}}