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

CVE-2022-40314: Improper Control of Generation of Code ('Code Injection')

September 30, 2022 (updated December 21, 2022)

A remote code execution risk when restoring backup files originating from Moodle 1.9 was identified.

References

  • bugzilla.redhat.com/show_bug.cgi?id=2128147
  • moodle.org/mod/forum/discuss.php?d=438393
  • nvd.nist.gov/vuln/detail/CVE-2022-40314

Code Behaviors & Features

Detect and mitigate CVE-2022-40314 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 before 3.9.17, all versions starting from 3.11 before 3.11.10, all versions starting from 4.0 before 4.0.4

Fixed versions

  • 3.9.17
  • 3.11.10
  • 4.0.4

Solution

Upgrade to versions 3.9.17, 3.11.10, 4.0.4 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 14 Feb 2026 00:24:10 +0000.