Skip to main content
VulnerabilityPublished Updated

CVE-2026-26046: moodle · OS Command Injection

Affects moodleSource CVE Database V5

0
Compare

Not known to be exploited · 13% EPSS · CVSS 7.2 High · fixed in 5.1.2 : patch moodle soon.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 3.1 base score
7.2High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
13.8% chance of exploitation in 30 days – higher than 96% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.1.2, 5.0.5, 4.5.9
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade moodle to 5.1.2, 5.0.5 or 4.5.9.

Affected software

ProductAffectedFixed in
GitHubmoodlepkg:github/moodleOther threatsAffected
  • <4.5.9
  • >=5.0.0 <5.0.5
  • >=5.1.0 <5.1.2
Fixed in
  • 4.5.9
  • 5.0.5
  • 5.1.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2026-26046, organizations should immediately update Moodle to a patched version once available. In the absence of patches, administrators should disable the TeX filter if not essential or remove ImageMagick from the server to break the exploitation chain. Strictly limit administrative access to trusted personnel and enforce strong authentication mechanisms such as multi-factor authentication. Regularly audit administrative configurations for suspicious or unexpected entries. Employ application-layer firewalls or intrusion detection systems to monitor and block anomalous command execution attempts. Additionally, implement strict input validation and sanitization controls in custom Moodle plugins or configurations. Regular backups and incident response plans should be in place to recover from potential compromises. Monitoring logs for unusual administrative activity can help detect exploitation attempts early.

Description

A vulnerability was found in a Moodle TeX filter administrative setting where insufficient sanitization of configuration input could allow command injection. On sites where the TeX filter is enabled and ImageMagick is installed, a maliciously crafted setting value entered by an administrator could result in unintended system command execution. While exploitation requires administrative privileges, successful compromise could affect the entire Moodle server.

References

Community reviews

Loading reviews…