Bug 2373838 (CVE-2025-49518)

Summary: CVE-2025-49518 moodle: IDOR allows fetching of recently accessed courses for other users via web service
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A vulnerability has been identified in Moodle, the open-source learning management system. The flaw lies in an insufficient capability check, which fails to adequately restrict which authenticated users can access other users' recently accessed course information. This oversight could lead to unauthorized information disclosure, potentially revealing user activity patterns or course enrollment details that should otherwise be protected.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2373851, 2373852    
Bug Blocks:    

Description OSIDB Bzimport 2025-06-19 08:38:32 UTC
A stricter capability check was required to restrict which users can fetch other users' recently accessed courses information.

Versions affected: 5.0, 4.5 to 4.5.4, 4.4 to 4.4.8, 4.1 to 4.1.18 and earlier unsupported versions

Versions fixed:	5.0.1, 4.5.5, 4.4.9 and 4.1.19

https://moodle.org/mod/forum/discuss.php?d=468507
http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-79993