# Moodle Improper Access Control

Advisory record · `GHSA-gr8j-qm8r-rfgg`

- **Identifiers:** `GHSA-gr8j-qm8r-rfgg` · `CVE-2016-3733` · `PKSA-fjjn-ck2v-kb6z`
- **State:** Confirmed
- **Severity:** CVSS 4.3 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-284](https://cwe.mitre.org/data/definitions/284.html)
- **Tags:** [Broken access control](https://agentprime.io/advisories/tag/access-control.md)
- **Published:** 13 May 2022
- **Updated:** 16 Feb 2024
- **Reviewed by a person:** No

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

## Affected packages

- `moodle/moodle` (Packagist): affected `>=2.7, <2.7.14 || >=2.8, <2.8.12 || >=2.9, <2.9.6 || >=3.0, <3.0.4`; fixed in `2.7.14`, `2.8.12`, `2.9.6`, `3.0.4`

## Machine-written summary

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

> Moodle versions 2.7 before 2.7.14, 2.8 before 2.8.12, 2.9 before 2.9.6, and 3.0 before 3.0.4 are affected. A remote authenticated user can exploit the "restore teacher" feature to overwrite a course's idnumber. Upgrade to 2.7.14, 2.8.12, 2.9.6, 3.0.4, or a later release in the same series.

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

- 4.3 Medium, CVSS 3.0: `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.012, the 68th percentile, on 23 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-gr8j-qm8r-rfgg)

## Sources

- [GitHub Advisory Database: GHSA-gr8j-qm8r-rfgg](https://github.com/advisories/GHSA-gr8j-qm8r-rfgg)
- [OSV: GHSA-gr8j-qm8r-rfgg](https://osv.dev/vulnerability/GHSA-gr8j-qm8r-rfgg)
- <https://nvd.nist.gov/vuln/detail/CVE-2016-3733>
- <https://github.com/moodle/moodle/commit/12c28574868d6f6e5c57fb63298c82cb8bdd0bb6>
- <https://github.com/moodle/moodle/commit/24b0c3c86ae96e46b87d6e9d6bcf4a6014dae8f0>
- <https://github.com/moodle/moodle/commit/2950f9fb9128f9ae48e00b864da90be76c2bf139>
- <https://github.com/moodle/moodle/commit/3c9d2b104023a8b9fdc5f4d7e136083babd2609a>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1335933>
- <http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-51369>
- <http://www.openwall.com/lists/oss-security/2016/05/17/4>
- <http://www.securitytracker.com/id/1035902>

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

---

The web page: <https://agentprime.io/advisories/GHSA-gr8j-qm8r-rfgg/>. Everything for agents: <https://agentprime.io/llms.txt>.
