Insufficient capability checks could allow users with the moodle/site:uploadusers capability to delete users, without having the necessary moodle/user:delete capability.
References
https://nvd.nist.gov/vuln/detail/CVE-2022-0985
https://bugzilla.redhat…