---
title: "CVE-2024-8796\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2024-8796?format=md
keywords: index, follow
---

# CVE-2024-8796

Publication date 17 September 2024

Last updated 17 August 2026

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**5.3 · Medium**

[Score breakdown](https://ubuntu.com/security/CVE-2024-8796?format=md#impact-score)

Toggle side navigation

## 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.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| ruby-devise-two-factor | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not affected |
| 24.10 oracular | Not affected |
| 24.04 LTS noble | Not affected |
| 22.04 LTS jammy | Fixed 4.0.0-2ubuntu0.1~esm1  Ubuntu Pro |
| 20.04 LTS focal | Fixed 3.1.0-2ubuntu0.1~esm1  Ubuntu Pro |
| 16.04 LTS xenial | Vulnerable |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

## Severity score breakdown

CVSS version:

CVSS v4.0

[CVSS v4.0](https://ubuntu.com/security/CVE-2024-8796?format=md)
[CVSS v3.0](https://ubuntu.com/security/CVE-2024-8796?format=md)

**Base score**

6.0 · Medium

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | High |
  | Attack requirements | Present |
  | Privileges required | Low |
  | User interaction | None |
  | Vulnerable system - Confidentiality impact | High |
  | Vulnerable system - Integrity impact | None |
  | Vulnerable system - Availability impact | None |
  | Subsequent system - Confidentiality impact | None |
  | Subsequent system - Integrity impact | None |
  | Subsequent system - Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 6.0 · Medium |
  | Base + Threat score | - |
  | Base + Environmental score | - |
  | Base + Threat + Environmental score | - |

**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

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-8796)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-8796)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2024-8796)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2024-8796)

### Related Ubuntu Security Notices (USN)

+ [USN-7050-1](https://usn.ubuntu.com/USN-7050-1)
+ Devise-Two-Factor vulnerabilities
+ 1 October 2024

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2024-8796>
* <https://github.com/devise-two-factor/devise-two-factor/security/advisories/GHSA-qjxf-mc72-wjr2>
