CVE-2026-26046

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.

Statement

This vulnerability is rated as an Important severity because it enables arbitrary command execution on the host operating system with the privileges of the web service, posing a severe threat to system confidentiality and integrity. The risk is constrained from Critical because exploitation demands high administrative privileges within Moodle to alter filter settings, alongside the requirement that both the TeX filter and external tools like ImageMagick are active. Moodle is not distributed in Red Hat Enterprise Linux and is only available through community projects such as Fedora.

Understanding the Weakness (CWE)

Confidentiality,Integrity,Availability,Non-Repudiation

Technical Impact: Execute Unauthorized Code or Commands; DoS: Crash, Exit, or Restart; Read Files or Directories; Modify Files or Directories; Read Application Data; Modify Application Data; Hide Activities

Attackers could execute unauthorized operating system commands, which could then be used to disable the product, or read and modify data for which the attacker does not have permissions to access directly. Since the targeted application is directly executing the commands instead of the attacker, any malicious activities may appear to come from the application or the application's owner.

Acknowledgements

Red Hat would like to thank Vicevirus for reporting this issue.

Frequently Asked Questions

Want to get errata notifications? Sign up here.