Moodle allows unauthenticated REST API user data exposure
High severity
GitHub Reviewed
Published
Apr 25, 2025
to the GitHub Advisory Database
•
Updated Apr 25, 2025
Description
Published by the National Vulnerability Database
Apr 25, 2025
Published to the GitHub Advisory Database
Apr 25, 2025
Reviewed
Apr 25, 2025
Last updated
Apr 25, 2025
A flaw has been identified in Moodle where, on certain sites, unauthenticated users could retrieve sensitive user data—including names, contact information, and hashed passwords—via stack traces returned by specific API calls. Sites where PHP is configured with zend.exception_ignore_args = 'On' or zend.exception_ignore_args = 1 in the relevant php.ini file are NOT affected by this vulnerability. Sites that do not have the zend.exception_ignore_args setting enabled and are using the internal Moodle LMS authentication system are affected by this vulnerability.
References