Skip to content
OpenAdvisories
Medium · 6.1 CVE-2025-67851 BIT-moodle-2025-67851EUVD-2025-206735GHSA-qfh6-h7j6-fvjv

Moodle: moodle: formula injection allows arbitrary formula execution via unescaped data export

Published Feb 3, 2026 · Updated Feb 3, 2026 · 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.

Affected products

VendorProductAffectedFixed
— moodle 4.1.0 – < 4.1.22, 4.4.0 – < 4.4.12, 4.5.0 – < 4.5.8, 5.0.0 – < 5.0.4, 5.1.0 – < 5.1.1 4.1.22

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS moodle No fix yet —
Ubuntu Pro 16.04 LTS moodle No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist moodle/moodle < 4.1.22 4.1.22 GHSA-qfh6-h7j6-fvjv
Packagist moodle/moodle >= 4.4.0-beta, < 4.4.12 4.4.12 GHSA-qfh6-h7j6-fvjv
Packagist moodle/moodle >= 4.5.0-beta, < 4.5.8 4.5.8 GHSA-qfh6-h7j6-fvjv
Packagist moodle/moodle >= 5.0.0-beta, < 5.0.4 5.0.4 GHSA-qfh6-h7j6-fvjv
Packagist moodle/moodle >= 5.1.0-beta, < 5.1.1 5.1.1 GHSA-qfh6-h7j6-fvjv

Advisories 1

References