6.1medium
Moodle: moodle: formula injection allows arbitrary formula execution via unescaped data export
- Severity
- 6.1medium CVSS:3.1 by fedora
- Exploit likelihood
- 0.29% (higher than 22% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- fedora
- Also known as
- GHSA-qfh6-h7j6-fvjvBIT-MOODLE-2025-67851
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 | CVE List |
| 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 | GitHub Advisory Database |
| 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 | NVD |
| 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 | Bitnami Vulnerability Database |
All scores
| fedora | 6.1medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L |
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Se encontró una falla en moodle. Esta vulnerabilidad de inyección de fórmulas ocurre cuando los campos de datos se exportan sin el escape adecuado. Un atacante remoto podría explotar esto al proporcionar datos maliciosos que, al exportarse y abrirse en una hoja de cálculo, permiten la ejecución de fórmulas arbitrarias. Esto puede llevar a un compromiso de la integridad de los datos y a operaciones no intencionadas dentro de la hoja de cálculo.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-67851 changed 2026-02-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qfh6-h7j6-fvjv changed 2026-02-12 | CC-BY-4.0 |
| NVD | CVE-2025-67851 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-MOODLE-2025-67851 changed 2026-09-08 | Apache-2.0 |