Insufficient sanitizing when exporting data to CSV / XLSX format could result in malicious formulas being inserted into the files.
Note: Most modern spreadsheet software will warn users and require confirmation before running potentially risky formulas, however this is still considered a risk as users may still accept the warning.
| Severity/Risk: | Serious |
| Versions affected: | 5.1, 5.0 to 5.0.3, 4.5 to 4.5.7, 4.4 to 4.4.11, 4.1 to 4.1.21 and earlier unsupported versions |
| Versions fixed: | 5.1.1, 5.0.4, 4.5.8, 4.4.12 and 4.1.22 |
| Reported by: | Brendan Heywood |
| CVE identifier: | CVE-2025-67851 |
| Changes (main): | http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72744 |
| Tracker issue: | MDL-72744 Formula injection risk when exporting data to CSV / Excel |