Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2022-40314

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-40314
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 14:30 UTC · Revision 1

Source evidence

CVE-2022-40314

core-osv · Original source

Published 30 Sept 2022, 16:29 UTC

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

osv:CVE-2022-40314
Complete source record
{
  "id": "0273647ed9a48fc3239dba9ff9dac883a0613dca564b1e8d8e2d38c3409ea1f6",
  "url": "https://osv.dev/vulnerability/CVE-2022-40314",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2022-40314",
    "summary": "A remote code execution risk when restoring backup files originating from Moodle 1.9 was identified.",
    "evidence": "osv:CVE-2022-40314",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2022-40314",
      "aliases": [
        "BIT-moodle-2022-40314",
        "CVE-2022-40314",
        "GHSA-2hmm-q272-xmhf"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/moodle/moodle",
              "type": "GIT",
              "events": [
                {
                  "introduced": "500c131eb49771e36f68d151dfa37fef5a9bc2df"
                },
                {
                  "fixed": "33e9b8c3944731e646296d53e71932bed65d2f9e"
                },
                {
                  "introduced": "94f2d3fc4b974c5c7d500988c56b7ca15f58d7ec"
                },
                {
                  "fixed": "54b614ca7e6d23063dc88235a574c4de45f85224"
                },
                {
                  "introduced": "8b359ad7a63cf219110bca80552fe3d4ea2a635d"
                },
                {
                  "fixed": "8febbe39733645a1aeb55f22d2adfb8d66dfc50d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.9"
                      },
                      {
                        "fixed": "3.9.17"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.11"
                      },
                      {
                        "fixed": "3.11.10"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0"
                      },
                      {
                        "fixed": "4.0.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.9.16",
            "v3.11.9",
            "v4.0.3",
            "v4.0.2",
            "v3.11.8",
            "v3.9.15",
            "v3.9.14",
            "v4.0.1",
            "v3.11.7",
            "v4.0.0",
            "v3.11.6",
            "v3.9.13",
            "v3.11.5",
            "v3.9.12",
            "v3.11.4",
            "v3.9.11",
            "v3.11.3",
            "v3.9.10",
            "v3.11.1",
            "v3.11.2",
            "v3.9.9",
            "v3.9.8",
            "v3.11.0",
            "v3.9.7",
            "v3.9.6",
            "v3.9.5",
            "v3.9.4",
            "v3.9.3",
            "v3.9.2",
            "v3.9.1",
            "v3.9.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-40314.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:29.518458926Z",
      "provider": "osv",
      "references": [
        "https://moodle.org/mod/forum/discuss.php?d=438393",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40314.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-40314",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2128147"
      ],
      "provider_metadata": {
        "cna_assigner": "fedora",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "3.9.16"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "VersionTextExtraction"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40314.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-40314",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 496405,
  "published_at": "2022-09-30T16:29:22+00:00"
}