CVE-2025-62397: Moodle: router produces json instead of 404 error for invalid course id

Published Oct 16, 2025
·
Updated

The router’s inconsistent response to invalid course IDs allowed attackers to infer which course IDs exist, potentially aiding reconnaissance.

Other sources

When supplied with non-existent course IDs, the router returned JSON data instead of a standard 404 response. This discrepancy enables attackers to distinguish between valid and invalid course identifiers, facilitating user enumeration or reconnaissance.

Versions affected: 5.0 to 5.0.2 Versions fixed: 5.0.3

Red Hat

Affected Software

2 affected components
Moodle Moodle>=5.0<=5.0.2
Moodle Moodle>=5.0.0<5.0.3

Event History

Oct 16, 2025
Data Sourced
via Red Hat·02:32 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
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-62397?

CVE-2025-62397 is a moderate severity vulnerability that allows attackers to infer existing course IDs.

2

How do I fix CVE-2025-62397?

To fix CVE-2025-62397, ensure that your Moodle installation is updated to the latest secure version provided by the vendor.

3

Who is affected by CVE-2025-62397?

CVE-2025-62397 affects users of the Moodle platform, particularly those utilizing its course management features.

4

What type of vulnerability is CVE-2025-62397?

CVE-2025-62397 is an information disclosure vulnerability that stems from inconsistent responses to invalid course IDs.

5

What can an attacker achieve through CVE-2025-62397?

An attacker can use CVE-2025-62397 to perform reconnaissance and discover valid course IDs within the Moodle platform.

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