CVE-2025-62398
PHP vulnerability analysis and mitigation

Overview

A serious authentication bypass vulnerability (CVE-2025-62398) was discovered in Moodle's multi-factor authentication (MFA) system. The vulnerability affects Moodle versions 5.0.0-beta to 5.0.2, 4.5.0-beta to 4.5.6, and 4.4.0-beta to 4.4.10, and was disclosed on October 23, 2025. The flaw allows attackers with valid credentials to bypass MFA requirements during the web services login flow (Miggo, NVD).

Technical details

The vulnerability exists in the tool_mfa\manager::should_require_mfa function within public/admin/tool/mfa/classes/manager.php. The security flaw stems from improper handling of AJAX and Web Service requests during the MFA process. The vulnerability has a CVSS 3.1 base score of 5.4 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N. The issue is classified as CWE-287 (Improper Authentication) (Miggo, NVD).

Impact

The vulnerability potentially compromises user accounts by allowing attackers to bypass the second-factor authentication requirement. This could lead to unauthorized access to user accounts where attackers have obtained valid username and password combinations (Bugzilla, NVD).

Mitigation and workarounds

The vulnerability has been patched in Moodle versions 5.0.3, 4.5.7, and 4.4.11. The fix involves removing a conditional check that allowed AJAX and WS requests to proceed without completing MFA when a session was marked as mfapending. Organizations are advised to upgrade to the patched versions (Miggo, [Bugzilla](https://bugzilla.redhat.com/showbug.cgi?id=2404431)).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65346CRITICAL9.1
  • PHPPHP
  • alexusmai/laravel-file-manager
NoNoDec 04, 2025
CVE-2025-66468HIGH7.6
  • PHPPHP
  • aimeos/ai-cms-grapesjs
NoYesDec 02, 2025
CVE-2025-65345MEDIUM6.5
  • PHPPHP
  • alexusmai/laravel-file-manager
NoNoDec 03, 2025
CVE-2025-65657MEDIUM6.5
  • PHPPHP
  • feehi/cms
NoNoDec 02, 2025
CVE-2025-65186MEDIUM6.1
  • PHPPHP
  • getgrav/grav
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management