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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | moodle | < 4.5.9, 5.0.0 – < 5.0.5, 5.1.0 – < 5.1.2 | 4.5.9 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | moodle | No fix yet | — |
| Ubuntu Pro 16.04 LTS | moodle | No fix yet | — |
Advisories 1
- WID-SEC-2026-0447 Moodle: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 17, 2026
References
- https://access.redhat.com/security/cve/CVE-2026-26046 vdb-entry
- RHBZ#2440903 issue-tracking