Monitor vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.2
Moodle TeX Filter with ImageMagick: Command Injection Risk
CVE-2026-26046
Summary
The TeX filter in Moodle, when used with ImageMagick, can be manipulated by an administrator to execute unintended system commands. This requires administrative access, but could allow an attacker to affect the entire Moodle server. To prevent this, administrators should ensure proper sanitization of configuration input for the TeX filter.
What to do
No fix is available yet. Check with your software vendor for updates.
Affected software
| Vendor | Product | Affected versions | Fix available |
|---|---|---|---|
| moodle | moodle | <= 4.5.9 | – |
| moodle | moodle | > 5.0.0 , <= 5.0.5 | – |
| moodle | moodle | > 5.1.0 , <= 5.1.2 | – |
Original title
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 enable...
Original 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.
nvd CVSS3.1
7.2
Vulnerability type
CWE-78
OS Command Injection
- https://access.redhat.com/security/cve/CVE-2026-26046 Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2440903 Third Party Advisory
Published: 21 Feb 2026 · Updated: 12 Mar 2026 · First seen: 6 Mar 2026