Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. moodle/moodle
  4. ›
  5. CVE-2022-35650

CVE-2022-35650: Improper Input Validation

July 25, 2022 (updated November 7, 2023)

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.

References

  • git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72029
  • bugzilla.redhat.com/show_bug.cgi?id=2106274
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6MOKYVRNFNAODP2XSMGJ5CRDUZCZKAR3/
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MTKUSFPSYFINSQFSOHDQIDVE6FWBEU6V/
  • moodle.org/mod/forum/discuss.php?d=436457
  • nvd.nist.gov/vuln/detail/CVE-2022-35650

Code Behaviors & Features

Detect and mitigate CVE-2022-35650 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.9.0 before 3.9.15, all versions starting from 3.11.0 before 3.11.8, all versions starting from 4.0.0 before 4.0.2

Fixed versions

  • 3.9.15
  • 3.11.8
  • 4.0.2

Solution

Upgrade to versions 3.9.15, 3.11.8, 4.0.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

packagist/moodle/moodle/CVE-2022-35650.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:27 +0000.