5.3medium
Improper one time password handling in devise-two-factor
- Severity
- 5.3medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.88% (higher than 60% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- SNPS
- Also known as
- GHSA-jm35-h8q2-73mp
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
| Product or package | Versions | Reported by |
|---|---|---|
| Tinfoil devise-two-factor | < 4.0.2 | CVE List |
| devise-two-factor (RubyGems) | before 4.0.2 | GitHub Advisory Database |
| tinfoilsecurity devise-two-factor | before 4.0.2 | NVD |
All scores
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:P/I:N/A:N |
Classification
What each source says
CVE List
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)
GitHub Advisory Database
Impact
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.
Patches
This vulnerability has been patched in version 4.0.2 which was released on March 24th, 2022. Individuals using this package are strongly encouraged to upgrade as soon as possible.
Credit for discovery
Benoit Côté-Jodoin Michael Nipper - https://github.com/tinfoil/devise-two-factor/issues/106
NVD (es)
Como resultado de una corrección incompleta de CVE-2015-7225, en las versiones de devise-two-factor anteriores a 4.0.2, es posible reusar una contraseña de un solo uso (OTP) durante un (y solo un) intervalo inmediatamente posterior. Vector CVSS: (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N)
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-43177 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jm35-h8q2-73mp changed 2026-08-27 | CC-BY-4.0 |
| NVD | CVE-2021-43177 changed 2026-06-17 | Public domain |