# CVE-2025-67851: Moodle: moodle: formula injection allows arbitrary formula execution via unescaped data export

- Severity: Medium 6.1 (CVSS:3.1, scored by fedora) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 22% of CVEs (2026-12-01)
- Published: 2026-02-03T10:52:06.974Z
- Modified: 2026-09-08T08:48:15.447Z
- Also known as: GHSA-qfh6-h7j6-fvjv, BIT-MOODLE-2025-67851
- Weaknesses: CWE-1236
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: fedora

## Description

A flaw was found in moodle. This formula injection vulnerability occurs when data fields are exported without proper escaping. A remote attacker could exploit this by providing malicious data that, when exported and opened in a spreadsheet, allows arbitrary formulas to execute. This can lead to compromised data integrity and unintended operations within the spreadsheet.

(As written by CVE List.)

## Affected

- moodle: from 4.1.0 before 4.1.22; from 4.4.0 before 4.4.12; from 4.5.0 before 4.5.8; from 5.0.0 before 5.0.4; from 5.1.0 before 5.1.1
- moodle/moodle (Packagist): before 4.1.22; from 4.4.0-beta before 4.4.12; from 4.5.0-beta before 4.5.8; from 5.0.0-beta before 5.0.4; from 5.1.0-beta before 5.1.1
- moodle moodle: before 4.1.22; from 4.4.0 before 4.4.11; from 4.5.0 before 4.5.8; from 5.0.0 before 5.0.4; 5.1.0
- moodle (Bitnami): before 4.1.22; from 4.4.0 before 4.4.11; from 4.5.0 before 4.5.8; from 5.0.0 before 5.0.4; from 5.1.0 before 5.1.1

## Every score

- fedora: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://access.redhat.com/security/cve/CVE-2025-67851> (advisory, third-party-advisory, vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2423841> (advisory, issue-tracking, third-party-advisory, web)
- <https://moodle.org/mod/forum/discuss.php?d=471301> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-67851> (advisory, web)
- <https://github.com/moodle/moodle/commit/29820c5ff4ef381c7a743091ec5c68ac82903b22> (web)
- <https://github.com/moodle/moodle/commit/aa66bacd0783cbc33528fba9c2adca1f685a59bd> (web)
- <https://github.com/moodle/moodle/commit/dc57ccc491a2a04032445a3ee92fd0d335ebd746> (web)
- <https://github.com/moodle/moodle> (package)

## Sources

- CVE List: [CVE-2025-67851](https://www.cve.org/CVERecord?id=CVE-2025-67851), CVE Terms of Use, modified 2026-02-03
- GitHub Advisory Database: [GHSA-qfh6-h7j6-fvjv](https://github.com/advisories/GHSA-qfh6-h7j6-fvjv), CC-BY-4.0, modified 2026-02-12
- NVD: [CVE-2025-67851](https://nvd.nist.gov/vuln/detail/CVE-2025-67851), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MOODLE-2025-67851](https://osv.dev/vulnerability/BIT-MOODLE-2025-67851), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-67851 · Whole record: https://cve.day/CVE-2025-67851.json · Rebuilt by cve.day 2026-11-25T22:59:11.008Z
