{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-8796","id":"CVE-2024-8796","title":"Insufficient Default OTP Shared Secret Length","description":"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.","descriptionLong":"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":"2024-09-17T17:12:13.468Z","updated":"2026-10-28T02:30:43.005890319Z","reserved":"2024-09-13T16:52:10.095Z","status":"Analyzed","rejected":false,"assigner":"SNPS","metric":{"version":"4.0","score":6,"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","rating":"medium","source":"SNPS"},"metrics":[{"version":"4.0","score":6,"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","rating":"medium","source":"SNPS"},{"version":"4.0","score":6,"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","rating":"medium","source":"synopsys.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"medium","source":"GitHub"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"SNPS"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"synopsys.com"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["devise-two-factor"],"affectedProducts":[{"vendor":"devise-two-factor","product":"devise-two-factor","defaultStatus":"unaffected","versions":[{"lessThan":"6.0.0","status":"affected","version":"4.0.0","versionType":"custom"},{"status":"affected","version":"1.0.0","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"devise-two-factor","purl":"pkg:gem/devise-two-factor","ranges":[">=4.0.0 <6.0.0","1.0.0"],"fixed":["6.0.0"],"advisory":"GHSA-qjxf-mc72-wjr2"}],"cwes":["CWE-331"],"aliases":["GHSA-qjxf-mc72-wjr2"],"references":[{"url":"https://github.com/devise-two-factor/devise-two-factor/security/advisories/GHSA-qjxf-mc72-wjr2","tags":["vendor-advisory","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8796.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8796","tags":["advisory"]},{"url":"https://github.com/devise-two-factor/devise-two-factor/commit/cc6f34423d9c6af9f3e02be478c3c40dc7462e19","tags":["web"]},{"url":"https://github.com/devise-two-factor/devise-two-factor","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00641,"epssPercentile":0.51501,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-8796","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8796","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-8796","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-qjxf-mc72-wjr2","ok":true,"note":"GHSA-qjxf-mc72-wjr2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-8796","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}