CVE-2021-43177
MEDIUM 5.3CVSS 3.1Improper one time password handling in devise-two-factor
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)
- Published
- 11 Apr 2022
- Last modified
- 27 Aug 2026
- Assigned by
- disclosure@synopsys.com
- NVD status
- Modified
- Weakness
- CWE-254
- Also known as
- GHSA-jm35-h8q2-73mp
- Sources
- NVDJSONOSV GHSA-jm35-h8q2-73mpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tinfoilsecurity | devise-two-factorcpe:2.3:a:tinfoilsecurity:devise-two-factor:*:*:*:*:*:*:*:* |
< 4.0.2 | 4.0.2 |
| OSV | RubyGems | devise-two-factor | < 4.0.2 | 4.0.2 |
References
- https://github.com/tinfoil/devise-two-factor/security/advisories/GHSA-jm35-h8q2-73mp · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-43177 · ADVISORY
- https://github.com/tinfoil/devise-two-factor/issues/106 · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise-two-factor/CVE-2021-43177.yml · WEB
- https://github.com/tinfoil/devise-two-factor · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 11 Apr 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Apr 2022)