
CVE catalog
CVE-2021-43177
ruby-devise-two-factor: CVE-2021-43177
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.88% · Oct 25, 2026
As a result of an incomplete fix for CVE-2015-7225, in versions of devise-two-factor prior to 4.0.2 it is possible to reuse a One-Time-Password (OTP) for one (and only one) immediately trailing interval. CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N)
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby-devise-two-factor | bookworm | 4.0.2-1 | fixed |
| Ubuntu | ruby-devise-two-factor | pro | 3.1.0-2 | vulnerable |
| Ubuntu | ruby-devise-two-factor | pro | 4.0.0-2 | vulnerable |
| Ubuntu | ruby-devise-two-factor | pro | 4.0.0-2ubuntu0.1~esm1 | fixed |
| Ubuntu | ruby-devise-two-factor | 16.04 | 1.1.0-1 | vulnerable |
| Ubuntu | ruby-devise-two-factor | 16.04 | 2.0.0-1 | vulnerable |
| Ubuntu | ruby-devise-two-factor | pro | 3.1.0-2 | vulnerable |
| Ubuntu | ruby-devise-two-factor | pro | 4.0.0-2 | vulnerable |
| Ubuntu | ruby-devise-two-factor | pro | 4.0.0-2ubuntu0.1~esm1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby-devise-two-factor | source | bookworm | 4.0.2-1 | not yet assigned | Not reported | [1009636] |
| Ubuntu | ruby-devise-two-factor | deb | pro | 4.0.0-2ubuntu0.1~esm1 | Not reported | USN-7050-1 | Not reported |
| Ubuntu | ruby-devise-two-factor | deb | pro | 4.0.0-2ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2021-43177 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ruby-devise-two-factor]Fixed
Details (2)
4.0.2-1· all · bookwormFixed · Fixed:
4.0.2-1dsa · ruby-devise-two-factor · debian · bookworm; dsa · ruby-devise-two-factor · debian · 12
4.0.2-1· all · bookwormFixed · Fixed:
4.0.2-1dsa · ruby-devise-two-factor · debian · bookworm; dsa · ruby-devise-two-factor · debian · 12
Observed: