Skip to content
Heist/ feed
Back to feed
High

Moodle: moodle: remote code execution via insufficient restore input validation

Type: advisorySources: OSV

A flaw was found in Moodle. An attacker with access to the restore interface could trigger server-side execution of arbitrary code. This is due to insufficient validation of restore input, which leads to unintended interpretation by core restore routines. Successful exploitation could result in a full compromise of the Moodle application.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-67847
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 11:28 UTC · Revision 1

Source evidence

Moodle: moodle: remote code execution via insufficient restore input validation

core-osv · Original source

Published 23 Jan 2026, 04:35 UTC

A flaw was found in Moodle. An attacker with access to the restore interface could trigger server-side execution of arbitrary code. This is due to insufficient validation of restore input, which leads to unintended interpretation by core restore routines. Successful exploitation could result in a full compromise of the Moodle application.

osv:CVE-2025-67847
Complete source record
{
  "id": "a2785f799f477d42086215b11a5df75b82a0d94cb5629d9164fc8f359abd4739",
  "url": "https://osv.dev/vulnerability/CVE-2025-67847",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Moodle: moodle: remote code execution via insufficient restore input validation",
    "summary": "A flaw was found in Moodle. An attacker with access to the restore interface could trigger server-side execution of arbitrary code. This is due to insufficient validation of restore input, which leads to unintended interpretation by core restore routines. Successful exploitation could result in a full compromise of the Moodle application.",
    "evidence": "osv:CVE-2025-67847",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-67847",
      "aliases": [
        "BIT-moodle-2025-67847",
        "CVE-2025-67847",
        "GHSA-xvmh-25jw-gmmm"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/moodle/moodle",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "df1157bb845eabedd31989d6a1a6e18f638ff890"
                },
                {
                  "introduced": "ee91c6536f99e1633e2245780c4fe7f47340ed66"
                },
                {
                  "fixed": "ca15d0f2e8f29ca605dfff2e05e098db3d461425"
                },
                {
                  "introduced": "52c0da7c647bd6ba8c5f61882d88959821a1fb41"
                },
                {
                  "fixed": "48c9857449da61ee1efa89e679c30efb58d72484"
                },
                {
                  "introduced": "78e860178314c45441a21e0b99455400b8283d48"
                },
                {
                  "fixed": "a5b3ac7e43c082e6cb24a6094810735a945ff32e"
                },
                {
                  "introduced": "eb47eff0719455a7e1f7a9805bc75dad3f6b3995"
                },
                {
                  "last_affected": "eb47eff0719455a7e1f7a9805bc75dad3f6b3995"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.1.22"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.4.0"
                      },
                      {
                        "fixed": "4.4.12"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.5.0"
                      },
                      {
                        "fixed": "4.5.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.0.0"
                      },
                      {
                        "fixed": "5.0.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:5.1.0:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.1.0-NA"
                      },
                      {
                        "last_affected": "5.1.0-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "5.1.0-NA",
            "v4.1.21",
            "v4.4.11",
            "v4.5.7",
            "v5.1.0",
            "v5.0.3",
            "v4.1.20",
            "v4.4.10",
            "v4.5.6",
            "v5.0.2",
            "v4.5.5",
            "v5.0.1",
            "v4.1.19",
            "v4.4.9",
            "v4.1.18",
            "v5.0.0",
            "v4.5.4",
            "v4.4.8",
            "v4.5.3",
            "v4.4.7",
            "v4.1.17",
            "v4.5.2",
            "v4.4.6",
            "v4.1.16",
            "v4.5.1",
            "v4.4.5",
            "v4.1.15",
            "v4.5.0",
            "v4.4.4",
            "v4.1.14",
            "v4.1.13",
            "v4.4.3",
            "v4.4.2",
            "v4.1.12",
            "v4.4.1",
            "v4.1.11",
            "v4.1.10",
            "v4.4.0",
            "v4.1.9",
            "v4.1.8",
            "v4.1.7",
            "v4.1.6",
            "v4.1.5",
            "v4.1.4",
            "v4.1.3",
            "v4.1.2",
            "v4.1.1",
            "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-2025-67847.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:28.209832896Z",
      "provider": "osv",
      "references": [
        "https://git.moodle.org",
        "https://access.redhat.com/security/cve/CVE-2025-67847",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/67xxx/CVE-2025-67847.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-67847"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-94"
        ],
        "cna_assigner": "fedora",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "5.1.0"
                  },
                  {
                    "fixed": "5.1.1"
                  },
                  {
                    "introduced": "5.0.0"
                  },
                  {
                    "fixed": "5.0.4"
                  },
                  {
                    "introduced": "4.5.0"
                  },
                  {
                    "fixed": "4.5.8"
                  },
                  {
                    "introduced": "4.4.0"
                  },
                  {
                    "fixed": "4.4.12"
                  },
                  {
                    "introduced": "4.1.0"
                  },
                  {
                    "fixed": "4.1.22"
                  },
                  {
                    "fixed": "4.1.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/67xxx/CVE-2025-67847.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-67847",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 494971,
  "published_at": "2026-01-23T04:35:12.044+00:00"
}