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

Published Dec 19, 2025
·
Updated

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.

Other sources

A formula injection flaw occurred when data fields were exported without proper escaping, allowing spreadsheet formulas to execute when files are opened. This impacts data integrity and can lead to unintended operations.

Red Hat

Affected Software

11 affected componentsFixes available
moodle/moodle
composer/moodle/moodle>=5.1.0-beta<5.1.1
5.1.1
composer/moodle/moodle>=5.0.0-beta<5.0.4
5.0.4
composer/moodle/moodle>=4.5.0-beta<4.5.8
4.5.8
composer/moodle/moodle>=4.4.0-beta<4.4.12
4.4.12
composer/moodle/moodle<4.1.22
4.1.22
Moodle Moodle<4.1.22
Moodle Moodle>=4.4.0<4.4.11
Moodle Moodle>=4.5.0<4.5.8
Moodle Moodle>=5.0.0<5.0.4
Moodle Moodle=5.1.0

Event History

Dec 19, 2025
Data Sourced
via Red Hat·12:11 PM
DescriptionSeverityAffected Software
Feb 3, 2026
CVE Published
via MITRE·10:52 AM
Data Sourced
via MITRE·10:52 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 AM
Affected Software
Advisory Published
via GitHub·12:30 PM
Data Sourced
via GitHub·12:30 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-67851?

CVE-2025-67851 is rated as a high severity vulnerability due to its potential to allow arbitrary formula execution.

2

How do I fix CVE-2025-67851?

To fix CVE-2025-67851, upgrade to Moodle version 5.1.1, 5.0.4, 4.5.8, 4.4.12, or ensure you are running 4.1.22 or later.

3

What types of attacks can exploit CVE-2025-67851?

Attackers can exploit CVE-2025-67851 to execute arbitrary formulas by manipulating unescaped data during export.

4

Which versions of Moodle are affected by CVE-2025-67851?

CVE-2025-67851 affects multiple Moodle versions including those before 5.1.1, 5.0.4, 4.5.8, 4.4.12, and prior to 4.1.22.

5

What is the impact of not addressing CVE-2025-67851?

Failing to address CVE-2025-67851 can lead to unauthorized formula execution, potentially compromising the integrity of exported data.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203