Advisory

GHSA-ggxq-2mg9-8966

Also known as: BIT-moodle-2026-26045, CVE-2026-26045

Summary

Moodle has a Remote Code Execution risk via file restore

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-02-21 06:30 UTC
Modified
2026-03-02 09:40 UTC

Affected packages and fixes

moodle/moodle

Packagist · All systems

Affected

  • introduced 5.1.0-beta, fixed 5.1.2 (ecosystem)

Fixed versions

5.1.2

Fix

The export has no generic command for this ecosystem.

moodle/moodle

Packagist · All systems

Affected

  • introduced 5.0.0-beta, fixed 5.0.5 (ecosystem)

Fixed versions

5.0.5

Fix

The export has no generic command for this ecosystem.

moodle/moodle

Packagist · All systems

Affected

  • introduced 0, fixed 4.5.9 (ecosystem)

Fixed versions

4.5.9

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences