Skip to main content
Vulnerability Database/CVE-2026-107639

CVE-2026-107639: ILIAS LMS Argument Injection RCE Vulnerability

CVE-2026-107639 is an argument injection flaw in ILIAS LMS that enables remote code execution through ImageMagick convert options. Attackers exploit uploaded image filenames to write PHP files under the web root. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-107639 Overview

CVE-2026-107639 is an argument injection vulnerability [CWE-88] in the ILIAS learning management system. The flaw resides in the assImagemapQuestionGUI component, which processes uploaded image filenames when authoring image map questions. Authenticated question authors can embed tab-separated ImageMagick convert options inside filenames, which PHP's escapeshellcmd() fails to neutralise. Attackers abuse this to write arbitrary PHP files beneath the web root and achieve remote code execution on the ILIAS server. Affected branches include ILIAS releases before 9.24, 10.x before 10.12, and 11.x before 11.5.

Critical Impact

Authenticated question authors can achieve remote code execution on the ILIAS server by uploading a crafted image filename that injects ImageMagick arguments.

Affected Products

  • ILIAS eLearning platform versions before 9.24
  • ILIAS 10.x versions before 10.12
  • ILIAS 11.x versions before 11.5

Discovery Timeline

  • 2026-10-08 - CVE-2026-107639 published to NVD
  • 2026-10-10 - Last updated in NVD database

Technical Details for CVE-2026-107639

Vulnerability Analysis

The vulnerability sits in the image upload path of the Test Question Pool component, specifically assImagemapQuestionGUI and the preview generation performed by ilImagemapPreview. When a question author uploads an image, ILIAS passes the filename into a shell command that invokes ImageMagick's convert utility. The application relies on PHP's escapeshellcmd() to sanitise input before execution.

escapeshellcmd() escapes shell metacharacters, but it does not treat whitespace, including tab characters, as an argument separator. An attacker who controls the filename can therefore append additional convert options separated by tabs. ImageMagick parses the extra tokens as new command-line flags, allowing option-based abuse of the converter without breaking out of the quoted command.

Root Cause

The root cause is misuse of escapeshellcmd() as an argument-safety boundary. The function only guards against command separators and does not prevent an attacker-controlled string from being interpreted as additional CLI arguments. Combined with ImageMagick's ability to write arbitrary output paths and formats, the gap produces an argument injection primitive leading to code execution. See the VulnCheck Advisory for ILIAS for a complete technical walkthrough.

Attack Vector

Exploitation requires an authenticated account with permission to author test questions, a role commonly granted to instructors and content editors on ILIAS deployments. The attacker creates or edits an image map question and uploads an image whose filename contains tab-separated ImageMagick switches. During preview generation, those switches instruct convert to write a PHP file into a web-accessible directory. Requesting the dropped file executes attacker-controlled PHP under the ILIAS web server's identity. Review the vulnerable code paths in the ILIAS ImageMapQuestionGUI Class Code and the ILIAS ImageMapPreview Class Code.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-107639

Indicators of Compromise

  • Uploaded image filenames containing tab characters, long option-like substrings, or ImageMagick flags such as -write, -set, or output extensions like .php.
  • New or modified .php, .phtml, or .phar files beneath ILIAS data and web directories, particularly inside assessment or question-pool upload paths.
  • Outbound connections or shell-process spawns originating from the PHP-FPM or Apache worker serving ILIAS shortly after a question edit.

Detection Strategies

  • Inspect ILIAS web server access logs for POST requests to assImagemapQuestionGUI endpoints followed by GET requests to unexpected .php files in upload directories.
  • Monitor process creation events where the web server user invokes convert with argument lists containing writable PHP paths or inline: and label: coders.
  • Alert on filesystem writes of executable script types inside ILIAS content directories using file-integrity monitoring.

Monitoring Recommendations

  • Enable PHP audit logging for file uploads and record original client filenames before sanitisation.
  • Capture command-line arguments for all ImageMagick executions via endpoint telemetry and forward them to a central analytics pipeline.
  • Review authenticated session activity for question-author accounts and flag bulk or atypical image uploads.

How to Mitigate CVE-2026-107639

Immediate Actions Required

  • Upgrade ILIAS to version 9.24, 10.12, or 11.5 or later, depending on the deployed branch.
  • Audit the question-author role assignments and revoke access from accounts that do not require it.
  • Scan ILIAS upload directories for unauthorised PHP files and remove any artefacts planted before patching.

Patch Information

The ILIAS maintainers addressed the issue in versions 9.24, 10.12, and 11.5. The code change is tracked in the ILIAS GitHub Commit AD1423C. Vendor announcements are published in ILIAS Blog Post 950, ILIAS Blog Post 951, and ILIAS Blog Post 952.

Workarounds

  • Restrict web server write permissions so the PHP process cannot create executable scripts inside publicly reachable directories.
  • Configure ImageMagick's policy.xml to disable risky coders such as MSL, EPHEMERAL, URL, MVG, and LABEL, and deny writes to script extensions.
  • Place a web application firewall rule in front of ILIAS that blocks multipart filenames containing tab characters or ImageMagick option tokens.
bash
# ImageMagick policy.xml hardening example
<policymap>
  <policy domain="coder" rights="none" pattern="MSL" />
  <policy domain="coder" rights="none" pattern="EPHEMERAL" />
  <policy domain="coder" rights="none" pattern="URL" />
  <policy domain="coder" rights="none" pattern="MVG" />
  <policy domain="coder" rights="none" pattern="LABEL" />
  <policy domain="path" rights="none" pattern="@*" />
  <policy domain="filename" rights="none" pattern="*.php*" />
</policymap>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.