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

CVE-2026-108113: ILIAS QTI Import RCE Vulnerability

CVE-2026-108113 is a remote code execution flaw in ILIAS LMS that allows authenticated authors to upload malicious files via QTI question imports. This post explains its impact, affected versions, and mitigation steps.

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-108113 Overview

ILIAS, a widely deployed open-source learning management system, contains an unrestricted file upload vulnerability in versions prior to 9.24, 10.12, and 11.5. The flaw resides in the QTI (Question and Test Interoperability) question import image handling routine ilQtiMatImageSecurity. Authenticated users with question pool import rights can upload a crafted archive that writes a .htaccess file and a PHP payload into the web-served image directory. This chain enables remote code execution as the web server user. The weakness is tracked as [CWE-434: Unrestricted Upload of File with Dangerous Type].

Critical Impact

Authenticated authors can achieve remote code execution on the ILIAS host by abusing QTI image import to drop executable PHP content into a web-accessible directory.

Affected Products

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

Discovery Timeline

  • 2026-10-09 - CVE-2026-108113 published to the National Vulnerability Database
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-108113

Vulnerability Analysis

The vulnerability lives in ilQtiMatImageSecurity, the server-side validator for images referenced inside QTI question package imports. The validator checked image metadata but failed to adequately verify the file name, encoding, and content for embedded executable payloads. Attackers with question pool import permission can craft a QTI archive that writes arbitrary files, including a .htaccess directive enabling PHP execution and a PHP shell, into the image directory served by the web server.

Because the destination path is reachable over HTTP, the planted script runs under the web server account on the next request. This yields remote code execution and full compromise of the ILIAS web tier, including access to configuration files containing database credentials.

Root Cause

The validate() method in class.ilQtiMatImageSecurity.php did not call an encoding validation step and did not enforce strict filename and MIME content checks before writing attachments to disk. Patched builds introduce a validateEncoding() guard and tighten filename/content validation to reject non-image payloads and .htaccess artifacts.

Attack Vector

Exploitation requires an authenticated account with question pool or test import rights, a role commonly granted to course authors and instructors. The attacker uploads a crafted QTI import archive through the standard import workflow. During extraction, the vulnerable validator accepts entries that place a .htaccess file and a .php file into the web-accessible image directory. Requesting the planted PHP file executes attacker-controlled code.

php
// Patch excerpt - components/ILIAS/QTI/classes/class.ilQtiMatImageSecurity.php
        $this->detectedMimeType = $detectedMimeType;
    }

+
    public function validate(): bool
    {
+        if (!$this->validateEncoding()) {
+            return false;
+        }
+
        if (!$this->validateLabel()) {
            return false;
        }
// Source: https://github.com/ILIAS-eLearning/ILIAS/commit/5b200351330bee698432a45c0877c5bc694c367a

The fix adds an upfront validateEncoding() check so improperly encoded or disguised payloads are rejected before any filename or content handling occurs. See the companion commit 47c8462 and the VulnCheck Advisory for ILIAS for full remediation context.

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-108113

Indicators of Compromise

  • Unexpected .htaccess files inside ILIAS image or data/ subdirectories, especially containing AddType or SetHandler directives for PHP
  • .php, .phtml, or .phar files written beneath QTI question pool image directories
  • Web server access logs showing GET or POST requests to attacker-named scripts under image paths
  • Spawned child processes from the PHP-FPM or Apache worker that execute shell utilities such as sh, bash, curl, or wget

Detection Strategies

  • Hash and inventory files under ILIAS web directories and alert on any newly written files with executable extensions
  • Correlate QTI import events in ILIAS application logs with subsequent file writes in the image directory
  • Deploy web application firewall rules that inspect multipart QTI uploads for .htaccess or PHP entries

Monitoring Recommendations

  • Enable file integrity monitoring (FIM) on ILIAS web roots, with high-priority alerts on .htaccess creation or modification
  • Forward web server, PHP, and ILIAS application logs to a centralized SIEM for correlation of import activity and anomalous process execution
  • Review audit logs for recently granted question pool or test import permissions on author and tutor accounts

How to Mitigate CVE-2026-108113

Immediate Actions Required

  • Upgrade ILIAS to version 9.24, 10.12, or 11.5 or later without delay
  • Audit all accounts with question pool import, test import, or administrator rights and revoke unnecessary privileges
  • Inspect the ILIAS web root for unauthorized .htaccess and PHP files and remove any artifacts discovered
  • Rotate database credentials and session secrets if evidence of exploitation is found

Patch Information

ILIAS maintainers released fixes in versions 9.24, 10.12, and 11.5. The core remediations are tracked in commits 47c8462, 58ee5b1, and 5b20035. Vendor guidance is published in ILIAS Blog Post #950, ILIAS Blog Post #951, and ILIAS Blog Post #952.

Workarounds

  • Temporarily restrict QTI question pool and test import rights to a minimal set of trusted administrators until patches are applied
  • Configure the web server to disable PHP execution within ILIAS image and data upload directories using php_admin_flag engine off or equivalent SetHandler None rules
  • Ensure AllowOverride None is set for upload directories to prevent attacker-supplied .htaccess files from taking effect
bash
# Apache configuration example to block PHP execution in ILIAS upload paths
<Directory "/var/www/ilias/data">
    AllowOverride None
    php_admin_flag engine off
    <FilesMatch "\.(php|phtml|phar)$">
        Require all denied
    </FilesMatch>
</Directory>

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.