CVE-2021-43177
Ruby vulnerability analysis and mitigation

Overview

CVE-2021-43177 affects devise-two-factor versions prior to 4.0.2. The vulnerability stems from an incomplete fix for CVE-2015-7225, allowing potential reuse of One-Time-Password (OTP) for one immediately trailing interval. This security issue was discovered by Benoit Côté-Jodoin and Michael Nipper (GitHub Advisory).

Technical details

The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (MEDIUM) with the vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N. This indicates that the vulnerability is network accessible, requires high attack complexity, needs low privileges, requires no user interaction, has unchanged scope, and can result in high confidentiality impact but no integrity or availability impact (NVD).

Impact

The vulnerability allows an attacker to potentially intercept and reuse a one-time password for one immediately trailing interval, compromising the security of two-factor authentication implementations (Ubuntu Security).

Mitigation and workarounds

The vulnerability has been patched in devise-two-factor version 4.0.2, released on March 24th, 2022. Users are strongly encouraged to upgrade to this version or later to address the security issue (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66568CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
CVE-2025-66567CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
GHSA-vfpf-xmwh-8m65HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 07, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management