CVE-2021-43177
JSON

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 packageVersionsReported by
Tinfoil devise-two-factor< 4.0.2CVE List
devise-two-factor (RubyGems)before 4.0.2GitHub Advisory Database
tinfoilsecurity devise-two-factorbefore 4.0.2NVD

All scores

GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD3.5low CVSS:2.0AV: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

SourceRecordLicence
CVE ListCVE-2021-43177 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-jm35-h8q2-73mp changed 2026-08-27CC-BY-4.0
NVDCVE-2021-43177 changed 2026-06-17Public domain