RubyGems (Ruby)Worst: Moderate4 advisories

devise-two-factor: known vulnerabilities

devise-two-factor has 4 reviewed security advisories in the GitHub Advisory Database — 4 moderate. The most recent was published 2024-09-17. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the devise-two-factor versions running across your servers, containers and images, and ranks what to patch first.

How to fix devise-two-factor

Upgrade devise-two-factor to a release at or above the fixed version shown for each advisory below. For RubyGems (Ruby):

bundle update devise-two-factor to 4.0.2 (or gem install devise-two-factor -v 4.0.2)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (4)

Devise-Two-Factor Authentication Uses Insufficient Default OTP Shared Secret Length Moderate 5.3 CWE-331 — Affected versions listed in the advisory. No fixed release is listed. Published 2024-09-17. GHSA-qjxf-mc72-wjr2 · CVE-2024-8796
Devise-Two-Factor vulnerable to brute force attacks Moderate 5.0 CWE-307 — Affected: 1.0.0 through 5.0.0. No fixed release is listed. Published 2024-01-11. GHSA-chcr-x7hc-8fp8 · CVE-2024-0227
Improper one time password handling in devise-two-factor Moderate 5.3 — Affected: before 4.0.2. Fixed in 4.0.2. Published 2022-04-11. GHSA-jm35-h8q2-73mp · CVE-2021-43177
Tinfoil Devise-two-factor does not "burn" a successfully validated one-time password (OTP) Moderate 5.3 — Affected: before 2.0.0. Fixed in 2.0.0. Published 2018-08-28. GHSA-x489-jjwm-52g7 · CVE-2015-7225

Find devise-two-factor across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.