CVE-2026-26046

Moodle: moodle: improper input sanitization in tex filter administration setting

Published Feb 21, 2026 CVSS 3.1 · 7.2 High EPSS 3.5% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A Moodle TeX filter administrators setting accepts input that is not fully sanitized, allowing a crafted value to inject system commands. The weakness, identified as CWE-78, means a malicious entry could be executed as the Moodle server process, potentially running arbitrary shell commands.

Affected Systems

All Moodle installations that have the TeX filter enabled and have ImageMagick installed are at risk. The specific versions affected are not listed, so any Moodle deployment with the default TeX filtering mechanism and ImageMagick may be vulnerable.

Risk and Exploitability

The CVSS score of 7.2 classifies this vulnerability as high severity, but the EPSS score of 3% indicates a low probability of exploitation in the wild. Exploitation requires administrative privileges within the Moodle site; once achieved, the attacker can affect the entire server. The vulnerability is not yet recorded in CISA’s KEV catalog, looking for privileged access to compromised Moodle instances.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Moodle to the latest version that includes the fix for the TeX filter sanitization flaw.
  • If patching is delayed, disable the TeX filter externally by removing or commenting out the corresponding entry in the Moodle configuration settings.
  • Configure ImageMagick so that it is not invoked by Moodle (for example, by setting the configuration option to use a safe image library or by restricting the execute permissions of ImageMagick binaries).

Generated by OpenCVE AI on November 26, 2026 at 18:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Moodle
Moodle moodle
Vendors & Products Moodle
Moodle moodle
Type Values Removed Values Added
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.
Title Moodle: moodle: improper input sanitization in tex filter administration setting
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
fedora
Published
Updated
Feb 26, 2026, 2:44 PM
Reserved
Feb 10, 2026, 1:30 PM
Status
Analyzed
Published
Feb 21, 2026, 6:17 AM
Modified
Jun 17, 2026, 10:25 AM