# Moodle formula injection vulnerability

Advisory record · `GHSA-qfh6-h7j6-fvjv`

- **Identifiers:** `GHSA-qfh6-h7j6-fvjv` · `BIT-moodle-2025-67851` · `CVE-2025-67851` · `PKSA-213q-p3b4-49zj`
- **State:** Confirmed
- **Severity:** CVSS 6.1 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-1236](https://cwe.mitre.org/data/definitions/1236.html)
- **Tags:** [Other injection](https://agentprime.io/advisories/tag/injection.md)
- **Published:** 3 Feb 2026
- **Updated:** 12 Feb 2026
- **Reviewed by a person:** No

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

## Affected packages

- `moodle/moodle` (Packagist): affected `<4.1.22 || >=4.4.0-beta, <4.4.12 || >=4.5.0-beta, <4.5.8 || >=5.0.0-beta, <5.0.4 || >=5.1.0-beta, <5.1.1`; fixed in `4.1.22`, `4.4.12`, `4.5.8`, `5.0.4`, `5.1.1`

## Machine-written summary

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

> Moodle versions before 4.1.22, 4.4.0-beta through before 4.4.12, 4.5.0-beta through before 4.5.8, 5.0.0-beta through before 5.0.4, and 5.1.0-beta through before 5.1.1 are affected. A remote attacker who supplies malicious data that is later exported can cause formulas to run when the export is opened in a spreadsheet, which may compromise data integrity. Upgrade to 4.1.22, 4.4.12, 4.5.8, 5.0.4, or 5.1.1, 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

- 6.1 Medium, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L`, from CNA (fedora)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0029, the 21st percentile, on 15 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-qfh6-h7j6-fvjv)

## Sources

- [GitHub Advisory Database: GHSA-qfh6-h7j6-fvjv](https://github.com/advisories/GHSA-qfh6-h7j6-fvjv)
- [OSV: GHSA-qfh6-h7j6-fvjv](https://osv.dev/vulnerability/GHSA-qfh6-h7j6-fvjv)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-67851>
- <https://github.com/moodle/moodle/commit/29820c5ff4ef381c7a743091ec5c68ac82903b22>
- <https://github.com/moodle/moodle/commit/aa66bacd0783cbc33528fba9c2adca1f685a59bd>
- <https://github.com/moodle/moodle/commit/dc57ccc491a2a04032445a3ee92fd0d335ebd746>
- <https://access.redhat.com/security/cve/CVE-2025-67851>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2423841>
- <https://github.com/moodle/moodle>
- <https://moodle.org/mod/forum/discuss.php?d=471301>

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

---

The web page: <https://agentprime.io/advisories/GHSA-qfh6-h7j6-fvjv/>. Everything for agents: <https://agentprime.io/llms.txt>.
