CVE-2021-43177
lowpriority · track · 21EPSS 0.009 · 59 %ileEUUSEPSS · scored 2026-10-28
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)
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 3.5–5.3
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
- tinfoilsecurity devise-two-factor< 4.0.2nvdUScpe:2.3:a:tinfoilsecurity:devise-two-factor:*:*:*:*:*:*:*:*
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-jm35-h8q2-73mpImproper one time password handling in devise-two-factor2022-04-07ghsa · osvUS
### 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
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (5)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2021-43177/cnnvd
- https://github.com/tinfoil/devise-two-factor/security/advisories/GHSA-jm35-h8q2-73mpcnnvd
- https://vigilance.fr/vulnerability/Devise-Two-Factor-user-access-via-Immediately-Trailing-Interval-45266cnnvd
- https://github.com/tinfoil/devise-two-factor/security/advisories/GHSA-jm35-h8q2-73mpenisa_euvd
- https://github.com/tinfoil/devise-two-factor/security/advisories/GHSA-jm35-h8q2-73mpThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan