CVE-2025-62396: Moodle: router (r.php) could expose application directories

Published Oct 16, 2025
·
Updated

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.

Other sources

Improper error handling in the routing mechanism could result in directory listings being returned to clients when “Accept: text/html” headers were missing. This could expose file structure or sensitive information about the application environment.

Versions affected: 5.0 to 5.0.2 and 4.5 to 4.5.6 Versions fixed: 5.0.3 and 4.5.7

Red Hat

Affected Software

6 affected componentsFixes available
Moodle Moodle>=5.0<=5.0.2
Moodle Moodle>=4.5<=4.5.6
composer/moodle/moodle>=4.5.0-beta<4.5.7
4.5.7
composer/moodle/moodle>=5.0.0-beta<5.0.3
5.0.3
Moodle Moodle>=4.5.0<4.5.7
Moodle Moodle>=5.0.0<5.0.3

Event History

Oct 16, 2025
Data Sourced
via Red Hat·02:29 PM
DescriptionSeverityAffected Software
Oct 23, 2025
CVE Published
via MITRE·11:28 AM
Data Sourced
via MITRE·11:28 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:15 PM
Affected Software
Advisory Published
via GitHub·12:31 PM
Data Sourced
via GitHub·12:31 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-62396?

CVE-2025-62396 is classified as a moderate severity vulnerability.

2

How does CVE-2025-62396 affect Moodle?

CVE-2025-62396 affects Moodle by potentially exposing internal directory listings due to improper HTTP header configurations.

3

How do I fix CVE-2025-62396?

To fix CVE-2025-62396, ensure proper configuration of HTTP headers in the Moodle router (r.php).

4

What versions of Moodle are affected by CVE-2025-62396?

CVE-2025-62396 affects all versions of Moodle that utilize the r.php router.

5

What is the primary risk associated with CVE-2025-62396?

The primary risk of CVE-2025-62396 is the potential exposure of sensitive internal directory information.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203