{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-67851","id":"CVE-2025-67851","title":"Moodle: moodle: formula injection allows arbitrary formula execution via unescaped data export","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.","descriptionLong":"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.","published":"2026-02-03T10:52:06.974Z","updated":"2026-10-28T02:31:14.947632318Z","reserved":"2025-12-12T13:00:24.330Z","status":"Analyzed","rejected":false,"assigner":"fedora","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L","rating":"medium","source":"fedora"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L","rating":"medium","source":"fedora"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L","rating":"medium","source":"puiterwijk.org"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["moodle"],"affectedProducts":[{"vendor":"","product":"moodle","defaultStatus":"unaffected","versions":[{"status":"affected","version":"4.1.0","lessThan":"4.1.22","versionType":"semver"},{"status":"affected","version":"4.4.0","lessThan":"4.4.12","versionType":"semver"},{"status":"affected","version":"4.5.0","lessThan":"4.5.8","versionType":"semver"},{"status":"affected","version":"5.0.0","lessThan":"5.0.4","versionType":"semver"},{"status":"affected","version":"5.1.0","lessThan":"5.1.1","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"moodle/moodle","purl":"pkg:composer/moodle/moodle","ranges":["<4.1.22",">=4.4.0-beta <4.4.12",">=4.5.0-beta <4.5.8",">=5.0.0-beta <5.0.4",">=5.1.0-beta <5.1.1"],"fixed":["4.1.22","4.4.12","4.5.8","5.0.4","5.1.1"],"advisory":"GHSA-qfh6-h7j6-fvjv"}],"cwes":["CWE-1236"],"aliases":["BIT-moodle-2025-67851","GHSA-qfh6-h7j6-fvjv"],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2025-67851","tags":["vdb-entry","x_refsource_REDHAT","Third Party Advisory","advisory","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2423841","tags":["issue-tracking","x_refsource_REDHAT","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=471301","tags":["Vendor Advisory","web"]},{"url":"https://github.com/moodle/moodle/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/67xxx/CVE-2025-67851.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-67851","tags":["advisory"]},{"url":"https://github.com/moodle/moodle/commit/29820c5ff4ef381c7a743091ec5c68ac82903b22","tags":["web"]},{"url":"https://github.com/moodle/moodle/commit/aa66bacd0783cbc33528fba9c2adca1f685a59bd","tags":["web"]},{"url":"https://github.com/moodle/moodle/commit/dc57ccc491a2a04032445a3ee92fd0d335ebd746","tags":["web"]},{"url":"https://github.com/moodle/moodle","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00286,"epssPercentile":0.21495,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-67851","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-67851","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-67851","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-qfh6-h7j6-fvjv","ok":true,"note":"GHSA-qfh6-h7j6-fvjv"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-67851","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}