CVEfocus › CVE database › CVE-2026-32700

CVE-2026-32700Devise has a confirmable "change email" race condition that permits user to confirm…

CVSS 6.0 MediumEPSS 0.4% (higher than 24% of CVEs)Published 2026-03-18Updated 2026-03-20Assigner: GitHub_M

Devise is an authentication solution for Rails based on Warden. Prior to version 5.0.3, a race condition in Devise's Confirmable module allows an attacker to confirm an email address they do not own. This affects any Devise application using the `reconfirmable` option (the default when using Confirmable with email changes). By sending two concurrent email change requests, an attacker can desynchronize the `confirmation_token` and `unconfirmed_email` fields. The confirmation token is sent to an email the attacker controls, but the `unconfirmed_email` in the database points to a victim's email address. When the attacker uses the token, the victim's email is confirmed on the attacker's account. This is patched in Devise v5.0.3. Users should upgrade as soon as possible. As a workaround, applications can override a specific method from Devise models to force `unconfirmed_email` to be persisted when unchanged. Note that Mongoid does not seem to respect that `will_change!` should force the attribute to be persisted, even if it did not really change, so the user might have to implement a workaround similar to Devise by setting `changed_attributes["unconfirmed_email"] = nil` as well.

CWE-362

What to do

Fixed builds are available from RubyGems: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
4Fix pending
2Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04ruby-deviseUnder investigationUBUNTU-CVE-2026-32700
Ubuntu 22.04ruby-deviseUnder investigationUBUNTU-CVE-2026-32700
Ubuntu 20.04ruby-deviseFix pendingUBUNTU-CVE-2026-32700
Ubuntu 18.04ruby-deviseFix pendingUBUNTU-CVE-2026-32700
Ubuntu 16.04ruby-deviseFix pendingUBUNTU-CVE-2026-32700
Debian 12ruby-deviseFix pendingDEBIAN-CVE-2026-32700
RubyGems librarydeviseFixed5.0.3GHSA-57hq-95w6-v4fc

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.