CVE-2021-40693
PHP vulnerability analysis and mitigation

Overview

An authentication bypass vulnerability (CVE-2021-40693) was identified in Moodle's external database authentication functionality. The vulnerability is due to type juggling issues and affects Moodle versions 3.9.x before 3.9.10, 3.10.x before 3.10.7, and 3.11.x before 3.11.3 (CERT-FR).

Technical details

The vulnerability has been assigned a CVSS v3.1 base score of 6.5 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N. This indicates that the vulnerability requires network access, low attack complexity, low privileges, and no user interaction. The scope is unchanged, with no impact on confidentiality, high impact on integrity, and no impact on availability (NVD). The vulnerability is classified under CWE-287 (Improper Authentication).

Impact

The vulnerability could allow an attacker to bypass authentication mechanisms when using external database authentication functionality. The CVSS scoring indicates that while there is no impact on confidentiality or availability, there is a high impact on system integrity (Ubuntu).

Mitigation and workarounds

Users should upgrade to Moodle versions 3.9.10, 3.10.7, or 3.11.3 or later, depending on their current version branch (CERT-FR).

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-2026-23622HIGH8.7
  • PHPPHP
  • alextselegidis/easyappointments
NoNoJan 15, 2026
CVE-2026-23493HIGH8.6
  • PHPPHP
  • pimcore/pimcore
NoYesJan 15, 2026
CVE-2026-23496MEDIUM5.4
  • PHPPHP
  • pimcore/web2print-tools-bundle
NoYesJan 15, 2026
CVE-2026-23495MEDIUM4.3
  • PHPPHP
  • pimcore/admin-ui-classic-bundle
NoYesJan 15, 2026
CVE-2026-23494MEDIUM4.3
  • PHPPHP
  • pimcore/pimcore
NoYesJan 15, 2026

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