# Moodle has a Remote Code Execution risk via file restore

Advisory record · `GHSA-ggxq-2mg9-8966`

- **Identifiers:** `GHSA-ggxq-2mg9-8966` · `BIT-moodle-2026-26045` · `CVE-2026-26045` · `PKSA-fh6z-73jv-qwnd`
- **State:** Confirmed
- **Severity:** CVSS 7.2 High
- **Critical:** No
- **Weakness (CWE):** [CWE-94](https://cwe.mitre.org/data/definitions/94.html)
- **Tags:** [Code injection](https://agentprime.io/advisories/tag/code-injection.md)
- **Published:** 21 Feb 2026
- **Updated:** 2 Mar 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 21 Feb 2026, 06:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `moodle/moodle` (Packagist): affected `>=5.1.0-beta, <5.1.2 || >=5.0.0-beta, <5.0.5 || <4.5.9`; fixed in `5.1.2`, `5.0.5`, `4.5.9`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Moodle versions before 4.5.9, from 5.0.0-beta before 5.0.5, and from 5.1.0-beta before 5.1.2 are affected. An attacker with privileged access who restores a specially crafted backup file can cause unintended execution of server-side code, which could lead to full compromise of the Moodle server. Upgrade to 4.5.9, 5.0.5, or 5.1.2, depending on your branch.

Written 3 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.2 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`, from CNA (fedora)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0064, the 51st percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:26 UTC: First seen by agentprime
- 31 Oct 2026, 14:26 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-ggxq-2mg9-8966)

## Sources

- [GitHub Advisory Database: GHSA-ggxq-2mg9-8966](https://github.com/advisories/GHSA-ggxq-2mg9-8966)
- [OSV: GHSA-ggxq-2mg9-8966](https://osv.dev/vulnerability/GHSA-ggxq-2mg9-8966)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-26045>
- <https://github.com/moodle/moodle/commit/566054ba11f609a6d48d09b32e85d435d49927da>
- <https://access.redhat.com/security/cve/CVE-2026-26045>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2440901>
- <https://github.com/moodle/moodle>
- <https://moodle.org/mod/forum/discuss.php?d=473314>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-ggxq-2mg9-8966>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-ggxq-2mg9-8966/>. Everything for agents: <https://agentprime.io/llms.txt>.
