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

CVE-2026-103521: Thelia CMS File Upload RCE Vulnerability

CVE-2026-103521 is a remote code execution vulnerability in Thelia CMS v2.6.0 affecting the document update endpoint. Attackers with admin access can upload malicious files to execute code. This article covers technical details, affected versions, security impact, 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-103521 Overview

CVE-2026-103521 is an arbitrary file upload vulnerability in Thelia v2.6.0, an open-source e-commerce platform. The document upload endpoint enforces file type restrictions that block executable uploads. The document update endpoint, however, lacks the same validation controls. An attacker with administrative Thelia permissions can abuse this gap to upload malicious files such as PHP scripts. Successful exploitation results in remote code execution on the underlying web server. The weakness is classified under [CWE-434: Unrestricted Upload of File with Dangerous Type].

Critical Impact

Authenticated administrators can upload arbitrary executable files through the document update endpoint, enabling remote code execution and full compromise of the Thelia host.

Affected Products

  • Thelia v2.6.0
  • Thelia document update endpoint handler
  • PHP-based Thelia deployments where uploaded files are web-accessible

Discovery Timeline

  • 2026-10-12 - CVE-2026-103521 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-103521

Vulnerability Analysis

Thelia exposes two administrative endpoints for managing product documents: an upload endpoint and an update endpoint. The upload endpoint applies a deny-list or allow-list check that rejects executable file types such as .php, .phtml, and .phar. The update endpoint, used to replace an existing document, omits this type validation. An authenticated administrator can therefore submit a crafted request to the update endpoint and replace a benign document with a PHP payload. Because uploaded documents are served from a web-accessible directory, requesting the uploaded file causes the PHP interpreter to execute attacker-controlled code under the web server user context.

Root Cause

The root cause is inconsistent input validation between two related endpoints. The upload handler validates MIME type and file extension before persisting the file. The update handler trusts the incoming file without re-applying those checks, leaving the dangerous file type filter effectively unenforced on the update path.

Attack Vector

Exploitation requires network access to the Thelia administration interface and valid administrative credentials. The attacker authenticates, selects an existing document record, and issues an update request supplying an executable file. After the file is written to disk under the public documents directory, the attacker requests the file by URL to trigger PHP execution. See the CERT Vulnerability Advisory #162329 for additional technical 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-103521

Indicators of Compromise

  • New or modified files with executable extensions (.php, .phtml, .phar, .pl) inside Thelia document storage directories such as web/media/documents/.
  • Outbound connections from the Thelia web server process to unknown hosts following administrative document update requests.
  • Web server access logs showing direct GET requests to document files that return dynamic content or shell-like responses.

Detection Strategies

  • Monitor HTTP POST or PUT requests targeting the Thelia document update endpoint and correlate with the content-type and extension of the submitted file.
  • Hash and inventory files in document storage directories; alert on any file whose extension is in a server-executable list.
  • Review Thelia administrative audit logs for document update actions performed by accounts that do not normally manage catalog assets.

Monitoring Recommendations

  • Enable file integrity monitoring on the Thelia web/ and media/ directories and alert on creation of script files.
  • Forward web server and PHP-FPM logs to a centralized analytics platform and search for execution of files served from upload paths.
  • Track administrative session activity and flag update operations that occur outside expected maintenance windows.

How to Mitigate CVE-2026-103521

Immediate Actions Required

  • Restrict access to the Thelia administration interface to trusted networks or VPN users until a patched release is deployed.
  • Audit all administrative accounts, rotate credentials, and remove unused admin privileges to reduce the attack surface.
  • Scan document storage directories for unexpected executable files and remove any that are not legitimate assets.

Patch Information

No vendor patch URL is listed in the NVD entry at publication. Monitor the CERT Vulnerability Advisory #162329 and the Thelia project release notes for a fixed version that applies file type validation to the document update endpoint.

Workarounds

  • Configure the web server to deny execution of PHP and other scripting languages within document upload directories, for example by disabling PHP handlers for web/media/documents/.
  • Enforce an allow-list of document MIME types and extensions at the reverse proxy or Web Application Firewall layer for requests targeting the document update endpoint.
  • Place uploaded documents on a storage path that is not served by the PHP interpreter, serving them instead through a controlled download handler.
bash
# Example Apache configuration to block script execution in Thelia document uploads
<Directory "/var/www/thelia/web/media/documents">
    php_admin_flag engine off
    SetHandler none
    RemoveHandler .php .phtml .phar .pl .py
    RemoveType .php .phtml .phar
    <FilesMatch "\.(php|phtml|phar|pl|py|cgi)$">
        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.