Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-67847: Improper Control of Generation of Code ('Code Injection')

0
High
VulnerabilityCVE-2025-67847cvecve-2025-67847
Published: Fri Jan 23 2026 (01/23/2026, 04:35:12 UTC)
Source: CVE Database V5

Description

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 08:22:01 UTC

Technical Analysis

CVE-2025-67847 is a critical security vulnerability identified in the Moodle learning management system, specifically impacting versions 4.1.0 through 5.1.0. The vulnerability arises from improper control over code generation during the restore process, where the restore interface fails to adequately validate input data. This insufficient validation leads to unintended interpretation of restore input by core restore routines, enabling an attacker with access to the restore interface to inject and execute arbitrary server-side code. The flaw essentially constitutes a code injection vulnerability that can be exploited to achieve full compromise of the Moodle application environment. The vulnerability does not require user interaction but does require the attacker to have some level of privileges to access the restore interface, which is typically restricted to authorized users such as administrators or course managers. The CVSS v3.1 base score of 8.8 reflects the high severity, with network attack vector (AV:N), low attack complexity (AC:L), privileges required (PR:L), no user interaction (UI:N), unchanged scope (S:U), and high impact on confidentiality (C:H), integrity (I:H), and availability (A:H). Although no known exploits are currently reported in the wild, the potential for full system compromise makes this a critical issue for organizations relying on Moodle for educational or training purposes. The vulnerability was reserved in December 2025 and published in January 2026, indicating recent discovery and disclosure. Due to the nature of the vulnerability, attackers could leverage it to execute arbitrary commands, deploy malware, exfiltrate sensitive data, or disrupt service availability.

Potential Impact

The impact of CVE-2025-67847 is significant for organizations using affected Moodle versions globally. Successful exploitation can lead to complete compromise of the Moodle application, including unauthorized access to sensitive educational data, user credentials, and administrative controls. Attackers could execute arbitrary code on the server, potentially pivoting to other internal systems or deploying persistent malware. This could disrupt educational services, cause data breaches, and damage organizational reputation. Since Moodle is widely used in academic institutions, government training programs, and corporate learning environments, the scope of impact is broad. The vulnerability's exploitation could also lead to compliance violations if sensitive student or employee data is exposed. The requirement for privileges to access the restore interface somewhat limits the attack surface but insider threats or compromised accounts could easily exploit this flaw. The lack of user interaction needed makes automated exploitation feasible once access is obtained. Overall, the vulnerability poses a high risk to confidentiality, integrity, and availability of Moodle-based systems.

Mitigation Recommendations

To mitigate CVE-2025-67847, organizations should immediately upgrade Moodle to a patched version once available from the official Moodle security advisories. In the interim, restrict access to the restore interface strictly to trusted administrators and monitor restore activity logs for suspicious behavior. Implement network segmentation and access controls to limit exposure of Moodle servers to only necessary personnel. Employ multi-factor authentication for all administrative accounts to reduce risk of credential compromise. Regularly audit user permissions to ensure only authorized users have restore privileges. Consider deploying web application firewalls (WAFs) with custom rules to detect and block suspicious restore requests. Conduct thorough input validation and sanitization on any custom Moodle plugins or extensions that interact with restore functionality. Maintain up-to-date backups and test restore procedures in isolated environments to prevent exploitation during recovery operations. Finally, monitor threat intelligence feeds for any emerging exploits targeting this vulnerability and respond promptly.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
fedora
Date Reserved
2025-12-12T13:00:24.329Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 697301b44623b1157c02f7e3

Added to database: 1/23/2026, 5:05:56 AM

Last enriched: 2/27/2026, 8:22:01 AM

Last updated: 3/25/2026, 12:33:59 PM

Views: 111

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses