MediumFix available
ruby-devise-two-factor — security advisory
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)
- Products
- ruby-devise-two-factor
- Affected versions
- Not specified
- Fixed versions
- 4.0.2-1
- CVEs
- CVE-2021-43177
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 01:20 UTC · Revision 1
Source evidence
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)
osv:DEBIAN-CVE-2021-43177
ruby-devise-two-factor
Fixed versions: 4.0.2-1
Complete source record
{
"id": "c8491644757608061f18a5344a29ce681ae088da84a7221c0e4dee469e6b8da2",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-43177",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2021-43177",
"summary": "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)",
"evidence": "osv:DEBIAN-CVE-2021-43177",
"products": [
{
"name": {
"value": "ruby-devise-two-factor",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.0.2-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2021-43177",
"aliases": [
"DEBIAN-CVE-2021-43177"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.0.2-1"
}
]
}
],
"package": {
"name": "ruby-devise-two-factor",
"purl": "pkg:deb/debian/ruby-devise-two-factor?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-43177.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:04:38.775369874Z",
"provider": "osv",
"upstream": [
"CVE-2021-43177"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2021-43177"
]
},
"related_cves": [
{
"value": "CVE-2021-43177",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 423596,
"published_at": "2022-04-11T20:15:16.037+00:00"
}