Skip to content
Heist/ feed
Back to feed
High

Moodle: moodle: improper validation in file restore functionality leading to remote code execution

Type: advisorySources: OSV

A flaw was identified in Moodle’s backup restore functionality where specially crafted backup files were not properly validated during processing. If a malicious backup file is restored, it could lead to unintended execution of server-side code. Since restore capabilities are typically available to privileged users, exploitation requires authenticated access. Successful exploitation could result in full compromise of the Moodle server.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-26045
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 19:45 UTC · Revision 1

Source evidence

Moodle: moodle: improper validation in file restore functionality leading to remote code execution

core-osv · Original source

Published 21 Feb 2026, 05:40 UTC

A flaw was identified in Moodle’s backup restore functionality where specially crafted backup files were not properly validated during processing. If a malicious backup file is restored, it could lead to unintended execution of server-side code. Since restore capabilities are typically available to privileged users, exploitation requires authenticated access. Successful exploitation could result in full compromise of the Moodle server.

osv:CVE-2026-26045
Complete source record
{
  "id": "bfc51c2e8d365147822fcf0278a126f47be2156792467237eeb89707e6a708d4",
  "url": "https://osv.dev/vulnerability/CVE-2026-26045",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Moodle: moodle: improper validation in file restore functionality leading to remote code execution",
    "summary": "A flaw was identified in Moodle’s backup restore functionality where specially crafted backup files were not properly validated during processing. If a malicious backup file is restored, it could lead to unintended execution of server-side code. Since restore capabilities are typically available to privileged users, exploitation requires authenticated access. Successful exploitation could result in full compromise of the Moodle server.",
    "evidence": "osv:CVE-2026-26045",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-26045",
      "aliases": [
        "BIT-moodle-2026-26045",
        "CVE-2026-26045",
        "GHSA-ggxq-2mg9-8966"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/moodle/moodle",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6b4d33a98f43ac19f1a37952467c8fbc722d0bdb"
                },
                {
                  "introduced": "78e860178314c45441a21e0b99455400b8283d48"
                },
                {
                  "fixed": "e1c3872f65bf261ecfe3cf7d171f98580f209089"
                },
                {
                  "introduced": "eb47eff0719455a7e1f7a9805bc75dad3f6b3995"
                },
                {
                  "fixed": "ac802ad8043e957fc8d6b9dfba4bb60f20949959"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.5.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.0.0"
                      },
                      {
                        "fixed": "5.0.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.1.0"
                      },
                      {
                        "fixed": "5.1.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v5.1.1",
            "v5.0.4",
            "v4.5.8",
            "v4.5.7",
            "v5.1.0",
            "v5.0.3",
            "v4.5.6",
            "v5.0.2",
            "v4.5.5",
            "v5.0.1",
            "v5.0.0",
            "v4.5.4",
            "v4.5.3",
            "v4.5.2",
            "v4.5.1",
            "v4.5.0",
            "v4.5.0-rc2",
            "v4.5.0-rc1",
            "v4.5.0-beta",
            "v4.4.0",
            "v4.4.0-rc2",
            "v4.4.0-rc1",
            "v4.4.0-beta",
            "v4.3.0",
            "v4.3.0-rc2",
            "v4.3.0-rc1",
            "v4.3.0-beta",
            "v4.2.0",
            "v4.2.0-rc2",
            "v4.2.0-rc1",
            "v4.2.0-beta",
            "v4.1.0-beta",
            "v4.1.0",
            "v4.1.0-rc3",
            "v4.1.0-rc2",
            "v4.1.0-rc1",
            "v4.0.0",
            "v4.0.0-rc2",
            "v4.0.0-rc3",
            "v4.0.0-rc4",
            "v4.0.0-rc1",
            "v4.0.0-beta",
            "v3.9.0-rc2",
            "v3.9.0",
            "v3.9.0-rc3",
            "v3.9.0-rc1",
            "v3.9.0-beta",
            "v3.8.0",
            "v3.8.0-rc1",
            "v3.8.0-beta",
            "v3.7.0",
            "v3.7.0-rc2",
            "v3.7.0-rc1",
            "v3.7.0-beta",
            "v3.6.0",
            "v3.6.0-rc2",
            "v3.6.0-rc3",
            "v3.6.0-rc1",
            "v3.6.0-beta",
            "v3.5.0",
            "v3.5.0-rc1",
            "v3.5.0-beta",
            "v3.4.0",
            "v3.4.0-rc2",
            "v3.4.0-rc3",
            "v3.4.0-rc1",
            "v3.4.0-beta",
            "v3.3.0",
            "v3.3.0-rc3",
            "v3.3.0-rc2",
            "v3.3.0-rc1",
            "v3.3.0-beta",
            "v3.2.0-rc2",
            "v3.2.0",
            "v3.2.0-rc4",
            "v3.2.0-beta",
            "v3.2.0-rc5",
            "v3.2.0-rc3",
            "v3.2.0-rc1",
            "v3.1.0-beta",
            "v3.1.0",
            "v3.1.0-rc2",
            "v3.1.0-rc1",
            "v3.0.0-rc3",
            "v3.0.0",
            "v3.0.0-rc4",
            "v3.0.0-rc2",
            "v3.0.0-rc1",
            "v3.0.0-beta",
            "v2.9.0",
            "v2.9.0-rc2",
            "v2.9.0-rc1",
            "v2.9.0-beta",
            "v2.8.0",
            "v2.8.0-rc2",
            "v2.8.0-rc1",
            "v2.8.0-beta",
            "v2.7.0",
            "v2.7.0-rc2",
            "v2.7.0-rc1",
            "v2.7.0-beta",
            "v2.6.0",
            "v2.6.0-rc1",
            "v2.6.0-beta",
            "v2.5.0",
            "v2.5.0-rc1",
            "v2.5.0-beta",
            "v2.4.0-beta",
            "v2.4.0-rc1",
            "v2.4.0",
            "v2.3.0",
            "v2.3.0-rc1",
            "v2.3.0-beta",
            "v2.2.0",
            "v2.2.0-rc1",
            "v2.2.0-beta",
            "v2.1.0",
            "v2.0.1",
            "v2.0.0",
            "v2.0.0-rc2",
            "v2.0.0-rc1",
            "v1.3.0",
            "v1.2.1",
            "v1.2.0",
            "v1.1.1",
            "v1.1.0",
            "v1.0.9",
            "v1.0.8",
            "v1.0.7",
            "v1.0.6",
            "v1.0.5",
            "v1.0.4",
            "v1.0.3",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-26045.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:22.924920884Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/security/cve/CVE-2026-26045",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26045.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-26045",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2440901",
        "https://github.com/moodle/moodle"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-94"
        ],
        "cna_assigner": "fedora",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26045.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-26045",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 489314,
  "published_at": "2026-02-21T05:40:05.763+00:00"
}