
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-69178 is a Server-Side Template Injection (SSTI) vulnerability in the TastyIgniter mail template editor that allows authenticated admin users to achieve full Remote Code Execution (RCE) on the server. It affects TastyIgniter versions up to and including v4.2.4 (composer package tastyigniter/tastyigniter versions before 4.3.1). The vulnerability was originally published on July 6, 2026, and added to the GitHub Advisory Database on November 25, 2026. It carries a CVSS v3.1 base score of 9.1 (Critical) (GitHub Advisory, TastyIgniter Advisory).
The root cause is CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine): the body field of the POST /admin/mail_templates/edit/{id} endpoint passes user-supplied content directly to the Blade/Pagic template engine without any validation or sanitization. An attacker can embed raw PHP directives (e.g., @php echo shell_exec(...); @endphp) into a mail template body, which are then executed server-side when the template is rendered or tested. Exploitation requires the attacker to be authenticated as an admin user with the Admin.MailTemplates permission, and is triggered by sending a POST request with the X-IGNITER-REQUEST-HANDLER: onTestTemplate header to invoke the test-template handler. A concrete PoC HTTP request is publicly documented in the advisory (GitHub Advisory, TastyIgniter Advisory).
Successful exploitation grants the attacker arbitrary PHP and OS command execution with the privileges of the web server process, resulting in full compromise of the host system. All three security pillars are critically affected: confidentiality (access to application data, credentials, and server files), integrity (ability to modify or delete data and deploy backdoors), and availability (potential to crash or disrupt the service). Because the scope is marked as Changed in the CVSS vector, the impact can extend beyond the TastyIgniter application itself to other resources on the same server, enabling lateral movement within the hosting environment (GitHub Advisory).
A public proof-of-concept exploit is available in the GitHub Security Advisory (GHSA-743w-g9pf-8p94), consisting of a complete crafted HTTP request with a Blade @php shell_exec(...) payload. As of the advisory publication date, there is no evidence of in-the-wild exploitation or threat actor attribution. The CVE status is listed as Reserved, and it does not appear in the CISA KEV catalog at this time. Exploitation requires high privileges (admin access with Admin.MailTemplates permission), which limits the attacker pool but does not eliminate risk in environments with multiple admin users or compromised credentials (GitHub Advisory, TastyIgniter Advisory).
Admin.MailTemplates permission (via credential theft, phishing, or brute force).@php echo shell_exec('echo "RCE Executed";id'); @endphpPOST /admin/mail_templates/edit/20 with the header X-IGNITER-REQUEST-HANDLER: onTestTemplate and a valid CSRF token and session cookie. The server renders the template through the Blade engine, executing the embedded PHP payload.uid=33(www-data)...), confirming RCE. Use this foothold to deploy a web shell, exfiltrate data, or pivot laterally (GitHub Advisory, TastyIgniter Advisory)./admin/mail_templates/edit/{id} containing the X-IGNITER-REQUEST-HANDLER: onTestTemplate header; outbound connections from the web server process to unexpected external IPs (potential reverse shell or data exfiltration)./admin/mail_templates/edit/ with onTestTemplate handler invocations; application logs containing output of OS commands (e.g., uid=, RCE Executed) in mail template rendering context.resources/views/ or storage/ directories with suspicious content./bin/sh, bash, curl, wget, python) with command-line arguments referencing shell commands or network connections.Upgrade TastyIgniter core to version v4.3.1 or later, which introduces a SafeMailTemplateContent validation rule that blocks raw PHP directives (@php blocks) in mail templates, theme layouts, pages, and partials (TastyIgniter v4.3.1 Release, Patch Commit). As an interim workaround, restrict the Admin.MailTemplates permission to only the most trusted administrators and audit existing mail templates for suspicious @php directives. Additionally, consider deploying WAF rules to block requests to /admin/mail_templates/ endpoints containing @php, shell_exec, system(, or similar PHP execution patterns (GitHub Advisory).
The vulnerability was reported by researcher callmeks and analyzed by CaptBoykin, with the advisory published by TastyIgniter maintainer sampoyigi on July 6, 2026 (TastyIgniter Advisory). The fix was incorporated into the v4.3.1 release alongside broader template sandboxing hardening, indicating the maintainers treated this as a high-priority security issue. No significant broader media coverage or notable social media discussion has been identified beyond the GitHub advisory and vulnerability database entries.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."