{"id":"USN-7050-1","summary":"ruby-devise-two-factor vulnerabilities","details":"Benoit Côté-Jodoin and Michael Nipper discovered that Devise-Two-Factor\nincorrectly handled one-time password validation. An attacker could\npossibly use this issue to intercept and re-use a one-time password.\n(CVE-2021-43177)\n\nGarrett Rappaport discovered that Devise-Two-Factor incorrectly handled\ngenerating multi-factor authentication codes. An attacker could possibly\nuse this issue to generate valid multi-factor authentication codes.\n(CVE-2024-8796)\n","modified":"2026-04-27T17:30:06.908796Z","published":"2024-10-01T14:47:15Z","related":["UBUNTU-CVE-2021-43177","UBUNTU-CVE-2024-8796"],"upstream":["CVE-2021-43177","CVE-2024-8796","UBUNTU-CVE-2021-43177","UBUNTU-CVE-2024-8796"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7050-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-43177"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-8796"}],"affected":[{"package":{"name":"ruby-devise-two-factor","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-devise-two-factor@3.1.0-2ubuntu0.1~esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.0-2ubuntu0.1~esm1"}]}],"versions":["3.0.3-2","3.1.0-2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"ruby-devise-two-factor","binary_version":"3.1.0-2ubuntu0.1~esm1"}]},"database_specific":{"cves_map":{"cves":[{"id":"CVE-2021-43177","severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2024-8796","severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","type":"CVSS_V3"},{"score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","type":"CVSS_V3"},{"score":"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","type":"CVSS_V4"},{"score":"medium","type":"Ubuntu"}]}],"ecosystem":"Ubuntu:Pro:20.04:LTS"},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7050-1.json"}},{"package":{"name":"ruby-devise-two-factor","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/ruby-devise-two-factor@4.0.0-2ubuntu0.1~esm1?arch=source&distro=esm-apps/jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.0-2ubuntu0.1~esm1"}]}],"versions":["3.1.0-2","4.0.0-2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"4.0.0-2ubuntu0.1~esm1","binary_name":"ruby-devise-two-factor"}]},"database_specific":{"cves_map":{"cves":[{"id":"CVE-2021-43177","severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","type":"CVSS_V3"},{"type":"Ubuntu","score":"medium"}]},{"id":"CVE-2024-8796","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"},{"score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","type":"CVSS_V3"},{"score":"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","type":"CVSS_V4"},{"score":"medium","type":"Ubuntu"}]}],"ecosystem":"Ubuntu:Pro:22.04:LTS"},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7050-1.json"}}],"schema_version":"1.7.5"}