# Moodle Users Can Bypass Deleted Status

Advisory record · `GHSA-72gv-qqrp-h9qg`

- **Identifiers:** `GHSA-72gv-qqrp-h9qg` · `CVE-2012-0797` · `PKSA-bqs2-mjm9-jj77`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **Weakness (CWE):** [CWE-287](https://cwe.mitre.org/data/definitions/287.html)
- **Tags:** [Authentication bypass](https://agentprime.io/advisories/tag/auth-bypass.md)
- **Published:** 13 May 2022
- **Updated:** 12 Jan 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 13 May 2022, 01:13 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `moodle/moodle` (Packagist): affected `>=2.2, <2.2.1 || >=2.1, <2.1.4 || >=2.0, <2.0.7`; fixed in `2.2.1`, `2.1.4`, `2.0.7`

## Machine-written summary

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

> Moodle versions 2.0 before 2.0.7, 2.1 before 2.1.4, and 2.2 before 2.2.1 are affected. A remote authenticated user whose account has been deleted can keep using the server through a token, bypassing the deleted status. Upgrade to 2.0.7, 2.1.4, 2.2.1, or later.

Written 5 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

No source has published a CVSS score for this record yet.

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

## Timeline

- 31 Oct 2026, 14:32 UTC: First seen by agentprime
- 31 Oct 2026, 14:32 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-72gv-qqrp-h9qg)

## Sources

- [GitHub Advisory Database: GHSA-72gv-qqrp-h9qg](https://github.com/advisories/GHSA-72gv-qqrp-h9qg)
- [OSV: GHSA-72gv-qqrp-h9qg](https://osv.dev/vulnerability/GHSA-72gv-qqrp-h9qg)
- <https://nvd.nist.gov/vuln/detail/CVE-2012-0797>
- <https://github.com/moodle/moodle/commit/364622b4662d9f349f3701ed548cda2f31491fea>
- <https://github.com/moodle/moodle/commit/bbcde38b334ecbfa2a18b01b77a7e995b2c0d9f7>
- <https://github.com/moodle/moodle/commit/dbfa519ad9e4d33ac3a4cd506d606d56a2f0bbff>
- <https://github.com/moodle/moodle/commit/e922d9a90bab337b1082fbe28c352c18cae2580e>
- <https://bugzilla.redhat.com/show_bug.cgi?id=783532>
- <https://github.com/moodle/moodle>
- <http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-28126>
- <http://moodle.org/mod/forum/discuss.php?d=194016>

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-72gv-qqrp-h9qg>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-72gv-qqrp-h9qg/>. Everything for agents: <https://agentprime.io/llms.txt>.
