Skip to main content
Vulnerability Database/CVE-2025-12760

CVE-2025-12760: Drupal Email TFA Auth Bypass Vulnerability

CVE-2025-12760 is an authentication bypass flaw in Drupal Email TFA that allows attackers to circumvent two-factor authentication protections. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-12760 Overview

CVE-2025-12760 is an authentication bypass vulnerability in the Drupal Email TFA contributed module. The flaw allows an authenticated attacker to bypass the two-factor authentication (2FA) functionality through an alternate path or channel. The issue affects all Email TFA releases from 0.0.0 before 2.0.6 and is tracked under [CWE-288: Authentication Bypass Using an Alternate Path or Channel]. Drupal maintainers disclosed the issue in security advisory SA-CONTRIB-2025-115 and released a fixed version.

Critical Impact

An authenticated user can bypass the email-based second authentication factor, undermining the account protection the module is intended to provide.

Affected Products

  • Drupal Email TFA module versions prior to 2.0.6
  • Drupal sites that rely on Email TFA as their primary second-factor method
  • Any Drupal deployment where Email TFA guards administrative or privileged accounts

Discovery Timeline

  • 2025-11-18 - CVE-2025-12760 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in the NVD database

Technical Details for CVE-2025-12760

Vulnerability Analysis

The Email TFA module adds a second authentication step that sends a one-time code to the user's registered email address. CVE-2025-12760 breaks that control. An attacker who already holds valid primary credentials can reach an authenticated session without supplying the email-delivered code. The authentication state machine exposes an alternate path that completes login while skipping the second factor.

The vulnerability is classified under [CWE-288] and requires network access with low privileges. Successful exploitation produces limited impact on confidentiality and integrity, but no direct impact on availability. The practical outcome is that stolen or phished primary credentials become immediately usable, erasing the compensating control that email-based TFA is deployed to provide.

Root Cause

The root cause is a logic flaw in how the module enforces the second-factor requirement across all login paths. The TFA check is applied inconsistently, allowing a request flow that reaches an authenticated state before the email code is validated. See Drupal Security Advisory SA-CONTRIB-2025-115 for the maintainer description.

Attack Vector

Exploitation is remote and requires the attacker to possess valid username and password credentials for a target account. The attacker initiates authentication over the network and leverages the alternate path to skip the email TFA challenge. No user interaction and no elevated privileges are needed beyond standard account credentials.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2025-12760

Indicators of Compromise

  • Successful logins recorded in Drupal watchdog logs without a corresponding Email TFA code validation event
  • Authentication sessions established from unusual geolocations or user agents for accounts enrolled in Email TFA
  • Absence of outbound email delivery events for TFA codes immediately preceding a successful login

Detection Strategies

  • Correlate Drupal authentication log entries with mail-queue or SMTP relay logs to identify logins that lack a preceding TFA code dispatch
  • Audit the users_field_data and session storage for recently authenticated TFA-enrolled users and compare against expected TFA event records
  • Review web server access logs for anomalous POST sequences to the login and TFA endpoints that deviate from the normal two-step pattern

Monitoring Recommendations

  • Enable verbose logging on the Email TFA module and forward Drupal logs to a centralized SIEM for correlation
  • Alert on authenticated sessions for privileged roles (administrator, content editor) that do not include a TFA validation event
  • Track the installed version of the Email TFA module across Drupal estates and alert when a host runs a release earlier than 2.0.6

How to Mitigate CVE-2025-12760

Immediate Actions Required

  • Upgrade the Drupal Email TFA module to version 2.0.6 or later on every affected site
  • Invalidate active sessions for all accounts enrolled in Email TFA and require re-authentication after patching
  • Rotate credentials for privileged Drupal accounts if logs indicate suspicious authentication activity

Patch Information

The maintainers released Email TFA 2.0.6, which closes the alternate authentication path. Administrators should install the update through Composer or the Drupal module update workflow. Full remediation details are available in Drupal Security Advisory SA-CONTRIB-2025-115.

Workarounds

  • Temporarily disable the Email TFA module and switch privileged accounts to an alternative TFA provider until the patch is applied
  • Restrict administrative login endpoints to trusted IP ranges using web server or reverse proxy access control lists
  • Reduce the number of accounts with elevated roles to limit the blast radius of a bypassed second factor
bash
# Update the Drupal Email TFA module to the fixed release
composer require 'drupal/email_tfa:^2.0.6' --update-with-dependencies
drush updatedb
drush cache:rebuild

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.