# Privilage Escalation in moodle

Advisory record · `GHSA-h77r-rp97-7rv4`

- **Identifiers:** `GHSA-h77r-rp97-7rv4` · `BIT-moodle-2020-25699` · `CVE-2020-25699` · `PKSA-9c8q-s2rm-8gsf`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **Weakness (CWE):** [CWE-269](https://cwe.mitre.org/data/definitions/269.html) · [CWE-863](https://cwe.mitre.org/data/definitions/863.html)
- **Tags:** [Privilege escalation](https://agentprime.io/advisories/tag/privilege-escalation.md) · [Broken access control](https://agentprime.io/advisories/tag/access-control.md)
- **Published:** 29 Mar 2021
- **Updated:** 16 Feb 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 29 Mar 2021, 20:43 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `moodle/moodle` (Packagist): affected `>=3.9.0, <3.9.3 || >=3.8.0, <3.8.6 || >=3.7.0, <3.7.9 || >=3.5, <3.5.15`; fixed in `3.9.3`, `3.8.6`, `3.7.9`, `3.5.15`

## Machine-written summary

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

> Moodle versions 3.5 to 3.5.14, 3.7 to 3.7.8, 3.8 to 3.8.5, 3.9 to 3.9.2, and earlier unsupported versions are affected. Users who have the ability to restore a course can add capabilities to roles within that course because of insufficient capability checks, which escalates their privileges. Upgrade to 3.5.15, 3.7.9, 3.8.6, 3.9.3, or 3.10.

Written 4 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.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.016, the 76th percentile, on 18 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:31 UTC: First seen by agentprime
- 31 Oct 2026, 14:31 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-h77r-rp97-7rv4)

## Sources

- [GitHub Advisory Database: GHSA-h77r-rp97-7rv4](https://github.com/advisories/GHSA-h77r-rp97-7rv4)
- [OSV: GHSA-h77r-rp97-7rv4](https://osv.dev/vulnerability/GHSA-h77r-rp97-7rv4)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-25699>
- <https://github.com/moodle/moodle/commit/b8e1eec4c77c858de87fedf4e405e929539ea0c5>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1895425>
- <https://github.com/moodle/moodle>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4NNFCHPPHRJNJROIX6SYMHOC6HMKP3GU>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B55KXBVAT45MDASJ3EK6VIGQOYGJ4NH6>
- <https://moodle.org/mod/forum/discuss.php?d=413936>

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-h77r-rp97-7rv4>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-h77r-rp97-7rv4/>. Everything for agents: <https://agentprime.io/llms.txt>.
