Skip to main content

Moodle CVE-2025-62396

MEDIUM
Exposure of Information Through Directory Listing (CWE-548)
2025-10-23 patrick@puiterwijk.org
5.3
CVSS 3.1 · Vendor: puiterwijk
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach Moodle r.php over network
  2. Exploit
    Send request hitting error-handling path
  3. Execution
    Server returns internal directory listing
  4. Impact
    Harvest 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

composer moodle/moodle fix: 4.5.7, 5.0.3

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

Vendor (puiterwijk) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (puiterwijk).

CVSS VectorVendor: puiterwijk

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

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

EPSS Score
0.3%
Top 77% exploitable
Prevalence
High
Moodle is among the most widely deployed learning management systems in education
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*
cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*

More in Moodle

View all
CVE-2013-3630 MEDIUM POC
4.6 Nov 01

Moodle through 2.5.2 allows remote authenticated administrators to execute arbitrary programs by configuring the aspell

CVE-2021-21809 CRITICAL POC
9.1 Jun 23

A command execution vulnerability exists in the default legacy spellchecker plugin in Moodle 3.10. Rated critical severi

CVE-2024-43425 HIGH POC
8.1 Nov 07

A flaw was found in Moodle. Rated high severity (CVSS 8.1), this vulnerability is remotely exploitable, no authenticatio

CVE-2017-2641 CRITICAL POC
9.8 Mar 26

In Moodle 2.x and 3.x, SQL injection can occur via user preferences. Rated critical severity (CVSS 9.8), this vulnerabil

CVE-2025-34031 HIGH POC
7.5 Jun 24

The Moodle LMS Jmol plugin version 6.1 and earlier contains a path traversal vulnerability in jsmol.php. The query param

CVE-2013-4341 MEDIUM POC
4.3 Sep 16

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

CVE-2016-9187 HIGH POC
8.8 Nov 04

Unrestricted file upload vulnerability in the double extension support in the "image" module in Moodle 3.1.2 allows remo

CVE-2016-9186 HIGH POC
8.8 Nov 04

Unrestricted file upload vulnerability in the "legacy course files" and "file manager" modules in Moodle 3.1.2 allows re

CVE-2018-14630 HIGH POC
8.8 Sep 17

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

CVE-2018-1133 HIGH POC
8.8 May 25

An issue was discovered in Moodle 3.x. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, low a

CVE-2016-7919 HIGH POC
7.5 Oct 28

Moodle 3.1.2 allows remote attackers to obtain sensitive information via unspecified vectors, related to a "SQL Injectio

CVE-2021-47857 HIGH POC
7.2 Jan 21

Moodle 3.10.3 contains a persistent cross-site scripting vulnerability in the calendar event subtitle field that allows

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy