CVE-2015-7225
MEDIUM 5.3CVSS 3.0Tinfoil Devise-two-factor does not "burn" a successfully validated one-time password (OTP)
Tinfoil Devise-two-factor before 2.0.0 does not strictly follow section 5.2 of RFC 6238 and does not "burn" a successfully validated one-time password (aka OTP), which allows remote or physically proximate attackers with a target user's login credentials to log in as said user by obtaining the OTP through performing a man-in-the-middle attack between the provider and verifier, or shoulder surfing, and replaying the OTP in the current time-step.
- Published
- 6 Sep 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-254
- Also known as
- GHSA-x489-jjwm-52g7
- Sources
- NVDJSONOSV GHSA-x489-jjwm-52g7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 5.3 | CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.3 | CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tinfoilsecurity | devise-two-factorcpe:2.3:a:tinfoilsecurity:devise-two-factor:*:*:*:*:*:*:*:* |
<= 1.1.0 | |
| OSV | RubyGems | devise-two-factor | < 2.0.0 | 2.0.0 |
References
- http://www.openwall.com/lists/oss-security/2015/06/20/4 · Mailing List, VDB Entry, WEB
- http://www.openwall.com/lists/oss-security/2015/09/17/2 · Mailing List, VDB Entry, WEB
- http://www.securityfocus.com/bid/76789 · Third Party Advisory, VDB Entry
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798466 · Mailing List, Third Party Advisory, WEB
- https://github.com/tinfoil/devise-two-factor/blob/master/UPGRADING.md · Third Party Advisory, WEB
- https://github.com/tinfoil/devise-two-factor/issues/45#issuecomment-139335608 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2015-7225 · ADVISORY
- https://github.com/advisories/GHSA-x489-jjwm-52g7 · ADVISORY
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise-two-factor/CVE-2015-7225.yml · WEB
- https://github.com/tinfoil/devise-two-factor · PACKAGE
- https://web.archive.org/web/20210122192452/https://www.securityfocus.com/bid/76789 · WEB
- http://www.openwall.com/lists/oss-security/2015/09/06/2 · WEB
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 6 Sep 2017)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Aug 2018)