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

CVE-2026-103528: Thelia Email Template RCE Vulnerability

CVE-2026-103528 is a remote code execution vulnerability in Thelia 2.6.0 affecting Smarty email templates. Authenticated admins can inject malicious code to execute system commands. This article covers technical details, impact, and mitigation.

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

CVE-2026-103528 is a server-side template injection vulnerability in Thelia 2.6.0, an open-source e-commerce platform. The flaw exists in the email templates subsystem, which uses the Smarty template engine without restricting access to dangerous PHP functions. An authenticated administrator can inject Smarty expressions through the messages configuration interface. When the template is previewed or rendered, functions such as system(), exec(), file_put_contents(), and file_get_contents() execute with the privileges of the web process. This results in arbitrary operating system command execution, file read and write operations, and full remote code execution on the host.

Critical Impact

Authenticated administrators can escalate template editing privileges into arbitrary command execution on the underlying web server.

Affected Products

  • Thelia 2.6.0
  • Thelia email templates module using Smarty
  • Deployments exposing the /admin messages configuration interface

Discovery Timeline

  • 2026-10-12 - CVE-2026-103528 published to NVD
  • 2026-10-15 - Last updated in NVD database

Technical Details for CVE-2026-103528

Vulnerability Analysis

Thelia 2.6.0 integrates the Smarty template engine to render administrator-defined email templates. The Smarty environment used for these templates does not enable the security policy that restricts available PHP functions. As a result, template authors can call native PHP functions directly from within Smarty tags. The messages configuration interface in the admin panel accepts arbitrary template content and renders it when previewing or sending an email. This weakness maps to CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine.

Root Cause

The Smarty instance used for email templates is instantiated without applying a Smarty_Security policy. Smarty's default configuration exposes PHP functions through modifiers and tag constructs. Without a hardened policy, calls such as {system('id')} or {file_get_contents('/etc/passwd')} are evaluated during template rendering. The administrator role in Thelia is a legitimate privilege boundary, but the template engine erases the separation between template logic and server-side code execution.

Attack Vector

An authenticated administrator navigates to the messages configuration section and edits an email template body. The attacker inserts Smarty expressions that invoke PHP functions, saves the template, and triggers a preview or sends a test email. The Smarty renderer evaluates the injected expressions server-side, executing commands under the web server account (commonly www-data). The attacker can then read sensitive files, write a web shell to the document root, or pivot further into the host. 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-103528

Indicators of Compromise

  • Unexpected modifications to email template records in the Thelia database, particularly new Smarty tags such as {php}, {system(...)}, or {file_put_contents(...)}.
  • New or modified PHP files appearing under the Thelia web root or web/ directory outside of deployment windows.
  • Outbound network connections initiated by the PHP-FPM or Apache worker process to unfamiliar hosts.
  • Shell utilities such as id, uname, curl, or wget spawned as child processes of the web server user.

Detection Strategies

  • Monitor process creation events where the parent process is the web server or PHP interpreter and the child is a shell or system binary.
  • Audit Thelia admin activity logs for edits to the messages configuration and preview actions performed in close sequence.
  • Inspect stored email templates for Smarty constructs that reference PHP function names.

Monitoring Recommendations

  • Enable PHP disable_functions audit logging to capture attempts to invoke system, exec, passthru, shell_exec, and proc_open.
  • Forward web server access logs and application logs to a central SIEM and alert on administrator sessions that trigger template previews followed by anomalous process activity.
  • Baseline file integrity on the Thelia installation directory and alert on write operations outside of deployment pipelines.

How to Mitigate CVE-2026-103528

Immediate Actions Required

  • Restrict administrator accounts to trusted personnel and enforce multi-factor authentication on the Thelia admin panel.
  • Review all existing email templates and remove any Smarty expressions that invoke PHP functions.
  • Place the Thelia admin interface behind a VPN or IP allowlist to reduce exposure.

Patch Information

No vendor patch is referenced in the published advisory at the time of writing. Monitor the CERT Vulnerability Advisory #162329 and the Thelia project for updates. Upgrade to a fixed release when it becomes available.

Workarounds

  • Enable Smarty's security policy by setting $smarty->enableSecurity() with a restrictive Smarty_Security class that disallows PHP function access.
  • Configure PHP disable_functions in php.ini to block system, exec, passthru, shell_exec, proc_open, and popen for the web process.
  • Run the Thelia web process under a least-privileged account with no write access to the application code directory.
bash
# Configuration example: php.ini hardening for the Thelia web process
disable_functions = system,exec,passthru,shell_exec,proc_open,popen,pcntl_exec
allow_url_fopen = Off
allow_url_include = Off
open_basedir = /var/www/thelia:/tmp

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.