CVE-2025-67847 — Vulnerability in moodle/moodle — CVE Details
Moodle affected by a code injection vulnerability
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.80%). Schedule for your next planned update.
Does your project use an affected moodle/moodle version?
Paste your composer.lock to check it for CVE-2025-67847 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
A flaw was found in Moodle. An attacker with access to the restore interface could trigger server-side execution of arbitrary code. This is due to insufficient validation of restore input, which leads to unintended interpretation by core restore routines. Successful exploitation could result in a full compromise of the Moodle application.
Advisory Timeline
- First published January 23, 2026 (307 days ago).
- Last revised March 6, 2026 — 42 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "moodle/moodle:^4.4.12"
composer require "moodle/moodle:^5.1.1"
composer require "moodle/moodle:^4.5.8"
composer require "moodle/moodle:^4.1.22"
composer require "moodle/moodle:^5.0.4"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (5)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| moodle/moodle Packagist · Affected: v4.2.0, v4.2.0-beta, v4.2.0-rc1, v4.2.0-rc2 (+42 more) | 4.4.12 |
| moodle/moodle Packagist · Affected: v5.1.0, v5.1.0-beta, v5.1.0-rc1, v5.1.0-rc2 | 5.1.1 |
| moodle/moodle Packagist · Affected: v4.5.0, v4.5.0-beta, v4.5.0-rc1, v4.5.0-rc2 (+7 more) | 4.5.8 |
| moodle/moodle Packagist · Affected: v2.3.10, v2.3.11, v2.3.4, v2.3.5 (+350 more) | 4.1.22 |
| moodle/moodle Packagist · Affected: v5.0.0, v5.0.0-beta, v5.0.0-rc1, v5.0.0-rc2 (+4 more) | 5.0.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2025-67847?
- Moodle affected by a code injection vulnerability. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2025-67847?
- CVE-2025-67847 affects moodle/moodle. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-67847 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 53.2% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2021-36394CRITICAL
Moodle Session Fixation vulnerability
- CVE-2022-40314CRITICAL
Moodle remote code execution
- CVE-2022-30599CRITICAL
SQL injection in moodle
- CVE-2021-3943CRITICAL
Moodle vulnerable to RCE via unsafe deserialization
- CVE-2025-26525HIGH
Moodle has an arbitrary file read risk through pdfTeX
- CVE-2025-26530HIGH
Moodle allows reflected XSS via question bank filter
- CVE-2025-67853HIGH
Moodle Affected by Improper Restriction of Excessive Authentication Attempts
- CVE-2024-34008HIGH
Moodle CSRF risk in analytics management of models