LiveActive security incident?Get immediate response
CVE Record

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 p...

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)

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

Applications using devise-two-factor before 4.0.2 could accept a one-time password again in the immediately following interval. That weakens two-factor authentication, but the source describes high attack complexity and requires an already privileged login context.

Executive priority

Treat as a targeted authentication-control issue. It is not documented as actively exploited, but exposed sensitive applications should be updated promptly because 2FA trust is directly affected.

Technical view

CVE-2021-43177 is an incomplete fix for CVE-2015-7225 in Tinfoil devise-two-factor. Versions before 4.0.2 may allow OTP reuse for one immediately trailing interval. The provided vector is network-accessible, high complexity, low privileges required, no user interaction, unchanged scope, high confidentiality impact only.

Likely exposure

Exposure is limited to Ruby/Rails applications that include Tinfoil devise-two-factor below 4.0.2 and rely on OTP validation for authentication decisions.

Exploitation context

No provided source or KEV listing indicates active exploitation. Abuse would depend on capturing or knowing a valid OTP and using it within the adjacent trailing interval.

Researcher notes

The evidence names only Tinfoil devise-two-factor versions before 4.0.2. Do not generalize this to other Devise, Rails, or OTP products without separate evidence.

Mitigation direction

  • Upgrade devise-two-factor to version 4.0.2 or later.
  • Identify applications using devise-two-factor in dependency manifests and lockfiles.
  • Prioritize internet-facing or sensitive applications using OTP-based authentication.
  • Review vendor advisory before applying environment-specific compensating controls.

Validation and detection

  • Confirm deployed dependency versions are not below 4.0.2.
  • Check build artifacts and lockfiles, not only source manifests.
  • Review authentication logs for suspicious repeated OTP acceptance, if logging supports it.
  • Document affected applications and remediation status for vulnerability tracking.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-254: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Credential and access behavior lookup

The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-43177 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
Tinfoildevise-two-factor< 4.0.2Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.