Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. moodle/moodle
  4. ›
  5. CVE-2025-67851

CVE-2025-67851: Moodle formula injection vulnerability

February 3, 2026

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.

References

  • access.redhat.com/security/cve/CVE-2025-67851
  • bugzilla.redhat.com/show_bug.cgi?id=2423841
  • github.com/advisories/GHSA-qfh6-h7j6-fvjv
  • github.com/moodle/moodle
  • github.com/moodle/moodle/commit/29820c5ff4ef381c7a743091ec5c68ac82903b22
  • github.com/moodle/moodle/commit/aa66bacd0783cbc33528fba9c2adca1f685a59bd
  • github.com/moodle/moodle/commit/dc57ccc491a2a04032445a3ee92fd0d335ebd746
  • moodle.org/mod/forum/discuss.php?d=471301
  • nvd.nist.gov/vuln/detail/CVE-2025-67851

Code Behaviors & Features

Detect and mitigate CVE-2025-67851 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.1.22, all versions starting from 4.4.0-beta before 4.4.12, all versions starting from 4.5.0-beta before 4.5.8, all versions starting from 5.0.0-beta before 5.0.4, all versions starting from 5.1.0-beta before 5.1.1

Fixed versions

  • 4.1.22
  • 4.4.12
  • 4.5.8
  • 5.0.4
  • 5.1.1

Solution

Upgrade to versions 4.1.22, 4.4.12, 4.5.8, 5.0.4, 5.1.1 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-1236: Improper Neutralization of Formula Elements in a CSV File

Source file

packagist/moodle/moodle/CVE-2025-67851.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 19 Feb 2026 00:18:11 +0000.