Skip to main content
VulnerabilityPublished Updated

CVE-2026-32700: heartcombo devise · Race Condition

Affects heartcombo deviseSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 6.0 Medium : upgrade to 5.0.3 when convenient.

Data as of 30 Oct 2026, 20:25 UTC

CVSS 4.0 base score
6.0Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 21% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.0.3
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Upgrade heartcombo devise to 5.0.3.

Affected software

ProductAffectedFixed in
heartcombodeviseAffected
  • <5.0.3
Fixed in
  • 5.0.3
RubyGemsdevisepkg:gem/deviseOther threatsAffected
  • <5.0.3
Fixed in
  • 5.0.3

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

The definitive mitigation is to upgrade all Devise instances to version 5.0.3 or later, where the race condition is patched. For organizations unable to upgrade immediately, a practical workaround involves overriding the Devise model method responsible for persisting the unconfirmed_email attribute to ensure it is saved even if unchanged, preventing desynchronization. Mongoid users should implement additional workarounds, such as setting changed_attributes["unconfirmed_email"] = nil, to force attribute persistence due to Mongoid's behavior. Developers should audit their codebase for concurrent email change request handling and consider implementing application-level synchronization or queuing mechanisms to prevent race conditions. Additionally, monitoring for unusual email confirmation activities and enforcing strict logging can help detect exploitation attempts. Regularly reviewing and testing authentication workflows for concurrency issues is recommended to prevent similar vulnerabilities.

Description

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.

References

Community reviews

Loading reviews…