# Moodle remote code execution via quiz questions

Advisory record · `GHSA-3m99-h3hp-w9j7`

- **Identifiers:** `GHSA-3m99-h3hp-w9j7` · `CVE-2014-3545` · `PKSA-7bwk-vbpq-ymxt`
- **State:** Confirmed
- **Severity:** No CVSS score
- **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:** 13 May 2022
- **Updated:** 7 Dec 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.0, <2.7.1 || >=2.6.0, <2.6.4 || >=2.5.0, <2.5.7 || >=2.4.0, <2.4.11`; fixed in `2.7.1`, `2.6.4`, `2.5.7`, `2.4.11`

## 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.017, the 77th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 13 May 2022. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-3m99-h3hp-w9j7](https://github.com/advisories/GHSA-3m99-h3hp-w9j7)
- [OSV: GHSA-3m99-h3hp-w9j7](https://osv.dev/vulnerability/GHSA-3m99-h3hp-w9j7)
- <https://nvd.nist.gov/vuln/detail/CVE-2014-3545>
- <https://github.com/moodle/moodle/commit/155bc7547227dc2047cfc8630cbfe121888b359b>
- <https://github.com/moodle/moodle/commit/29005a5418894b76e62e44bbc2c9e4ddee8f5ce6>
- <https://github.com/moodle/moodle/commit/44f726a7b1d351b39bb2a6a30c1b30027fabd000>
- <https://github.com/moodle/moodle/commit/539a25ff03fae377758d62caefcc71a2418e9a84>
- <https://github.com/moodle/moodle/commit/5c6c172033e3fb4afce862f8b32b459f5c35ad19>
- <https://github.com/moodle/moodle/commit/66de66fe6a8ce8f491562edad0a14f26d4808cb4>
- <https://github.com/moodle/moodle/commit/770d3ce42669067eca2bcee22d142ed7fec08550>
- <https://github.com/moodle/moodle/commit/82b3260eab2db58dfa9510645fd2c60ee0ce142e>
- <https://github.com/moodle/moodle/commit/88ec9f308da6a4bc7a735458cdf72648357d501d>
- <https://github.com/moodle/moodle>
- <https://github.com/moodle/moodle/blob/1474f74687dda57c7d011b92d16f25b9870d2799/question/type/calculated/question.php#L426>

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-3m99-h3hp-w9j7>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-3m99-h3hp-w9j7/>. Everything for agents: <https://agentprime.io/llms.txt>.
