Bug 2106274 (CVE-2022-35650, MSA-22-0016)

Summary: CVE-2022-35650 moodle: Arbitrary file read when importing lesson questions
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: gwync, igor.raits, security-response-team, sergio
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: moodle 4.0.2, moodle 3.11.8, moodle 3.9.15 Doc Type: If docs needed, set a value
Doc Text:
The vulnerability was found in Moodle, occurs due to input validation error when importing lesson questions. This insufficient path checks results in arbitrary file read risk. This vulnerability allows a remote attacker to perform directory traversal attacks. The capability to access this feature is only available to teachers, managers and admins by default.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-30 05:55:51 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: 2108040, 2108039    
Bug Blocks: 2106283, 2110417    

Description TEJ RATHI 2022-07-12 09:23:34 UTC
Insufficient path checks in a lesson question import resulted in an arbitrary file read risk. The capability to
access this feature is only available to teachers, managers and admins by default.

Versions affected: 4.0 to 4.0.1, 3.11 to 3.11.7, 3.9 to 3.9.14 and earlier unsupported versions
Versions fixed: 4.0.2, 3.11.8 and 3.9.15

Comment 3 TEJ RATHI 2022-07-18 10:54:29 UTC
Created moodle tracking bugs for this issue:

Affects: epel-all [bug 2108040]
Affects: fedora-all [bug 2108039]

Comment 4 Product Security DevOps Team 2022-08-30 05:55:49 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.