Moodle
CVE-2025-62396
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach Moodle r.php over network
-
ExploitSend request hitting error-handling path
-
ExecutionServer returns internal directory listing
-
ImpactHarvest exposed file/directory structure
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V13 - Configuration Directory listing prevention
|
| Exploitation Conditions | Exploitation requires a Moodle deployment where specific HTTP headers are not properly configured; under that condition the r.php router's error-handling path renders internal directory listings to the requester. Because the CVSS vector is AV:N/AC:L/PR:N/UI:N, a remote attacker needs no authentication and no user interaction, but the decisive limiting factor is the header misconfiguration - instances with correctly configured HTTP headers are not expected to expose the listings, which substantially narrows real-world exposure below what the raw 5.3 score suggests. Impact is limited to disclosure of internal directory/file structure (C:L), with no integrity or availability effect. |
| Impact | This is a genuinely moderate-to-low priority issue, and the signals agree rather than conflict. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, base 5.3) describes a remotely reachable, unauthenticated information-disclosure flaw with only low confidentiality impact and no integrity or availability effect - consistent with CWE-548 (exposure of information through directory listing). The EPSS score of 0.30% (23rd percentile) indicates low predicted exploitation likelihood, there is no CISA KEV listing (so no evidence of active exploitation), and no public exploit code is identified in the input. The vendor priority label is 'this_month', which aligns with a non-emergency but still schedulable fix rather than an act-now situation. The one nuance worth verifying: the flaw manifests only 'when specific HTTP headers were not properly configured', meaning real-world exposure depends on deployment configuration rather than being universal against default installs - this is not captured by the CVSS vector and should be confirmed against your own Moodle/reverse-proxy header configuration. No SSVC decision-point data (automatable/technical impact) was supplied, so that framework cannot be applied here. |
| Exploit ScenarioDerived | A remote, unauthenticated attacker sends HTTP requests to the Moodle router endpoint (r.php) on an instance where the expected HTTP headers are not properly configured, causing the error-handling path to render an internal directory listing. The attacker uses the exposed file and directory names to map the application's internal structure and inform further reconnaissance. No public exploit code is identified for this issue at the time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 28, 2026
Information disclosure in the Moodle router (r.php) lets a remote unauthenticated requester receive internal directory listings when the deployment's HTTP headers are not properly configured. The flaw is scored 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N), with impact confined to confidentiality - exposure of internal directory and file structure - and no effect on integrity or availability. Exposure is conditional on the header misconfiguration: instances with correctly configured HTTP headers are not expected to expose the listings, and EPSS is low at 0.30% (23rd percentile) with no public exploit identified at time of analysis and no CISA KEV listing.
RemediationAI
Patch available per vendor advisory: the input records patch status as available from the vendor, but no exact fixed version number is given in the supplied data, so the precise upgrade target must be confirmed from the Moodle release notes and the referenced advisories (https://access.redhat.com/security/cve/CVE-2025-62396, https://bugzilla.redhat.com/show_bug.cgi?id=2404429, https://vuldb.com/vuln/328833) before scheduling the upgrade. Because exploitation depends on the deployment's HTTP headers not being properly configured, correcting that header configuration is the documented condition under which r.php no longer exposes internal directory listings; installations already serving correctly configured headers are not expected to be exposed and can be validated first. Priority is moderate - the vuln.today decision label is this_month, EPSS is 0.30% (23rd percentile), and no public exploit has been identified at time of analysis - so remediation should be folded into the current monthly patch cycle rather than treated as an emergency, with the caveat that the actual severity for any given site hinges on whether its headers are misconfigured.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is Moodle's PHP-based request router, r.php, whose error-handling path can fall through to rendering a directory listing rather than a controlled error response. This maps to CWE-548 (Information Exposure Through Directory Listing): the root cause class is improper handling of an error condition combined with the web server/PHP environment being willing to enumerate directory contents. The supplied CPE data identifies the affected product as Moodle (cpe:2.3:a:moodle:moodle) across versions, and the tags confirm a PHP web-application context. The available sources do not name which specific HTTP headers must be misconfigured, nor do they describe the precise request sequence that reaches the vulnerable error path; the trigger beyond 'specific HTTP headers were not properly configured' is not described in the available sources. Severity metrics (AC:L, PR:N, UI:N) describe how easily the flaw is reached once the prerequisite misconfiguration exists, not a race, timing, or attacker-uncontrolled condition.
Know when Moodle gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Remote, unauthenticated request to r.php with no user interaction (AV:N/AC:L/PR:N/UI:N); only internal directory structure is disclosed, so C:L and I:N/A:N.
Primary rating from Vendor (puiterwijk).
CVSS VectorVendor: puiterwijk
DescriptionCVE.org
An error-handling issue in the Moodle router (r.php) could cause the application to display internal directory listings when specific HTTP headers were not properly configured.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
Moodle through 2.5.2 allows remote authenticated administrators to execute arbitrary programs by configuring the aspell
A command execution vulnerability exists in the default legacy spellchecker plugin in Moodle 3.10. Rated critical severi
A flaw was found in Moodle. Rated high severity (CVSS 8.1), this vulnerability is remotely exploitable, no authenticatio
In Moodle 2.x and 3.x, SQL injection can occur via user preferences. Rated critical severity (CVSS 9.8), this vulnerabil
The Moodle LMS Jmol plugin version 6.1 and earlier contains a path traversal vulnerability in jsmol.php. The query param
Multiple cross-site scripting (XSS) vulnerabilities in Moodle through 2.2.11, 2.3.x before 2.3.9, 2.4.x before 2.4.6, an
Unrestricted file upload vulnerability in the double extension support in the "image" module in Moodle 3.1.2 allows remo
Unrestricted file upload vulnerability in the "legacy course files" and "file manager" modules in Moodle 3.1.2 allows re
moodle before versions 3.5.2, 3.4.5, 3.3.8, 3.1.14 is vulnerable to an XML import of ddwtos could lead to intentional re
An issue was discovered in Moodle 3.x. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, low a
Moodle 3.1.2 allows remote attackers to obtain sensitive information via unspecified vectors, related to a "SQL Injectio
Moodle 3.10.3 contains a persistent cross-site scripting vulnerability in the calendar event subtitle field that allows
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB