CVE-2021-43177
MEDIUM5.3EPSS 0.39%Improper one time password handling in devise-two-factor
Published: 4/7/2022Modified: 4/28/2026
Description
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)
Affected packages (2)
- Debian/ruby-devise-two-factorfrom 0
- RubyGems/devise-two-factorfrom 0, < 4.0.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-43177
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-43177
- PATCHhttps://github.com/tinfoil/devise-two-factor
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise-two-factor/CVE-2021-43177.yml
- WEBhttps://github.com/tinfoil/devise-two-factor/issues/106
- WEBhttps://github.com/tinfoil/devise-two-factor/security/advisories/GHSA-jm35-h8q2-73mp