Vulnerability · Published Feb 3, 2026 · Assigned by fedora
CVE-2025-67851Moodle: moodle: formula injection allows arbitrary formula execution via unescaped data export
Medium 6.1
In plain English
A medium-severity security flaw in moodle. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 21% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | moodle/moodle | 4.1.22 | GHSA-qfh6-h7j6-fvjv |
| Packagist | moodle/moodle | 4.4.12 | GHSA-qfh6-h7j6-fvjv |
| Packagist | moodle/moodle | 4.5.8 | GHSA-qfh6-h7j6-fvjv |
| Packagist | moodle/moodle | 5.0.4 | GHSA-qfh6-h7j6-fvjv |
| Packagist | moodle/moodle | 5.1.1 | GHSA-qfh6-h7j6-fvjv |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| moodle | 4.1.0 – before 4.1.224.4.0 – before 4.4.124.5.0 – before 4.5.85.0.0 – before 5.0.45.1.0 – before 5.1.1 |
Weakness: CWE-1236 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L
References
- https://access.redhat.com/security/cve/CVE-2025-67851 vdb-entry, x_refsource_REDHAT
- RHBZ#2423841 issue-tracking, x_refsource_REDHAT
- https://moodle.org/mod/forum/discuss.php?d=471301