CVE-2025-67851
JSON

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 packageVersionsReported by
moodlefrom 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.1CVE 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.1GitHub Advisory Database
moodle moodlebefore 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.0NVD
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.1Bitnami Vulnerability Database

All scores

fedora6.1medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L
GitHub6.1medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-1236

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

Sources

SourceRecordLicence
CVE ListCVE-2025-67851 changed 2026-02-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-qfh6-h7j6-fvjv changed 2026-02-12CC-BY-4.0
NVDCVE-2025-67851 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-MOODLE-2025-67851 changed 2026-09-08Apache-2.0