Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. devise-two-factor
  4. ›
  5. CVE-2021-43177

CVE-2021-43177: Improper one time password handling in devise-two-factor

April 11, 2022 (updated April 18, 2022)

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)

References

  • github.com/advisories/GHSA-jm35-h8q2-73mp
  • github.com/tinfoil/devise-two-factor/issues/106
  • github.com/tinfoil/devise-two-factor/security/advisories/GHSA-jm35-h8q2-73mp

Code Behaviors & Features

Detect and mitigate CVE-2021-43177 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.0.2

Fixed versions

  • 4.0.2

Solution

Upgrade to version 4.0.2 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Source file

gem/devise-two-factor/CVE-2021-43177.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:11 +0000.