Bug 2064117 (CVE-2022-0985, MSA-22-0006)

Summary: CVE-2022-0985 moodle: Users with moodle/site:uploadusers but without moodle/user:delete could delete users
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: gwync, igor.raits, sergio
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: moodle 3.11.6, moodle 3.10.10, moodle 3.9.13 Doc Type: If docs needed, set a value
Doc Text:
Insufficient capability checks could allow users with the moodle/site:uploadusers capability to delete users, without having the necessary moodle/user:delete capability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-15 10:01:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2064121, 2064123    
Bug Blocks: 2064218    

Description TEJ RATHI 2022-03-15 06:13:45 UTC
Insufficient capability checks could allow users with the moodle/site:uploadusers capability to delete users, without
having the necessary moodle/user:delete capability.

Versions affected: 3.11 to 3.11.5, 3.10 to 3.10.9, 3.9 to 3.9.12 and earlier unsupported versions

References:
http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72972

Comment 1 TEJ RATHI 2022-03-15 06:14:18 UTC
Created moodle tracking bugs for this issue:

Affects: epel-7 [bug 2064121]
Affects: fedora-all [bug 2064123]

Comment 3 Product Security DevOps Team 2022-03-15 10:01:24 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.