Cyber Resilience

CVE-2025-31694

Auth Bypass in Two-Factor Authentication Project Two-Factor Authentication ≤ 8.x-1.10

Published
31 March 2025
Modified
02 September 2025
CVSS Score v3.1 8.1
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0037 30th percentile
Risk Priority 60 floored blend · peak EPSS

Summary

CVE-2025-31694 is a high-severity Authentication Bypass Using an Alternate Path or Channel (CWE-288) vulnerability in Two-Factor Authentication Project Two-Factor Authentication. Its CVSS base score is 8.1 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 30th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to AC-25 (Reference Monitor) and AC-3 (Access Enforcement) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2025-31694 is an Incorrect Authorization vulnerability (CWE-288) in the Drupal Two-factor Authentication (TFA) module that enables forceful browsing. This flaw affects all versions of the TFA module from 0.0.0 up to but not including 1.10.0. Published on March 31, 2025, it carries a CVSS v3.1 base score of 8.1 (High), reflecting network accessibility with high attack complexity but no privileges or user interaction required.

Remote, unauthenticated attackers can exploit this vulnerability over the network by engaging in forceful browsing to bypass authorization controls in the TFA module. Successful exploitation grants high-impact access, potentially leading to unauthorized confidentiality disclosures, integrity modifications, and availability disruptions within affected Drupal sites using vulnerable TFA versions.

The Drupal Security Advisory SA-CONTRIB-2025-023 at https://www.drupal.org/sa-contrib-2025-023 details mitigation steps, with the fix implemented in TFA version 1.10.0; administrators should upgrade to this or later versions to remediate the issue.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

Incorrect Authorization vulnerability in Drupal Two-factor Authentication (TFA) allows Forceful Browsing.This issue affects Two-factor Authentication (TFA): from 0.0.0 before 1.10.0.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1211 Exploitation for Stealth Stealth
Adversaries may exploit vulnerabilities to evade detection by hiding activity, suppressing logging, or operating within trusted or unmonitored components.
T1542.002 Component Firmware Stealth
Adversaries may modify component firmware to persist on systems.
T1556 Modify Authentication Process Defense Impairment
Adversaries may modify authentication mechanisms and processes to access user credentials or enable otherwise unwarranted access to accounts.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-7030Same product: Two-Factor Authentication Project Two-Factor Authentication
CVE-2024-13239Same product: Two-Factor Authentication Project Two-Factor Authentication
CVE-2024-13279Same product: Two-Factor Authentication Project Two-Factor Authentication
CVE-2024-4552Shared CWE-288
CVE-2025-61733Shared CWE-288
CVE-2024-9822Shared CWE-288
CVE-2025-54725Shared CWE-288
CVE-2026-68584Shared CWE-288
CVE-2024-27198Shared CWE-288
CVE-2025-34026Shared CWE-288

Affected Assets

two-factor authentication project
two-factor authentication
≤ 8.x-1.10

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)
  • 7 hardening rules · 3 OS baselines
Validate
Prove the fix (OWASP ASVS)
  • V6.4.3
  • V6.6.1
  • V12.1.3

Mitigating Controls (NIST 800-53 r5) AI

Requires a tamperproof, always-invoked reference monitor that structurally blocks bypass via any alternate path.

Enforces authorization checks on every logical access path, eliminating unauthenticated alternate channels.

Mandates unique identification and authentication for all organizational users, covering the primary authentication requirement.

Controls all external and key internal interfaces, reducing the chance of unauthenticated alternate channels.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.AA-03 full match
prevents

Requiring authentication on every channel and path directly eliminates alternate-path bypasses.

PR.AA-05 mostly match
prevents

Enforcing authorizations and least privilege across all access vectors prevents unauthenticated alternate paths.

PR.IR-01 mostly match
prevents

Protecting networks and environments from unauthorized logical access blocks bypass via undocumented channels.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing can detect alternate-path bypasses but does not prevent them in production.

degrades

Secure authentication control directly mitigates bypass by requiring strong, consistent authentication on all paths.

prevents

Access control policy directly addresses alternate authentication paths by requiring all channels to enforce authentication.

degrades

Authentication information management ensures credentials and mechanisms are consistently applied across all access paths.

prevents

Access rights provisioning and review prevent bypass via unmonitored or alternate channels.

prevents

Privileged access rights control reduces risk of bypass through elevated or alternate paths.

Hardening callouts derived

Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over `controls_xwalks` (authoritative rows only; rows rated `none` are excluded).

Oracle Linux 8 (2 rules)
  • V-248598 There must be no ".shosts" files on the OL 8 operating system. prevents CWE-288
  • V-248827 OL 8 must not have the rsh-server package installed. prevents CWE-288
Oracle Linux 9 (2 rules)
  • V-271757 OL 9 file systems must not contain shosts.equiv files. prevents CWE-288
  • V-271758 OL 9 file systems must not contain .shosts files. prevents CWE-288
RHEL 7 (3 rules)
  • V-204440 Red Hat Enterprise Linux operating systems version 7.2 or newer using Unified Extensible Firmware Interface (UEFI) must require authentication upon booting into single-user and maintenance modes. prevents CWE-288
  • V-204442 The Red Hat Enterprise Linux operating system must not have the rsh-server package installed. prevents CWE-288
  • V-204424 The Red Hat Enterprise Linux operating system must not allow accounts configured with blank or null passwords. prevents CWE-288

References