Live threats

All CVEs / Tinfoilsecurity

CVE-2021-43177Tinfoilsecurity Devise-two-factor

Medium 5.3

Priority
32
CVSS 3.1
5.3
EPSS
0.9%
probability of exploitation in 30 days · percentile 60
Auth required
Yes
Published
Apr 11, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-254
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

What happens

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)

Original NVD text.

What to do

  1. Apply the vendor's security update for Devise-two-factor.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems devise-two-factor < 4.0.2 4.0.2 gem "devise-two-factor", ">= 4.0.2"

Per OSV / GitHub Advisories (GHSA-jm35-h8q2-73mp). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
tinfoilsecuritydevise-two-factor< 4.0.2

Official sources

References

Links published by the sources. Open them with care.