CVE-2026-69178: 
PHP vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Exploitation steps

  1. Reconnaissance: Identify a TastyIgniter instance running version ≤ v4.2.4, accessible over the network, using version fingerprinting or Shodan/Censys searches for TastyIgniter admin panels.
  2. Obtain admin credentials: Authenticate to the TastyIgniter admin panel as a user with the Admin.MailTemplates permission (via credential theft, phishing, or brute force).
  3. Create or edit a mail template: Navigate to the mail templates editor and insert the following Blade SSTI payload into the template body field:
@php echo shell_exec('echo "RCE Executed";id'); @endphp
  1. Save the template: Submit the form to save the malicious template content to the database (e.g., template ID 20).
  2. Trigger execution: Send a crafted POST request to POST /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.
  3. Collect output: Review the server response or application logs for the output of the executed OS command (e.g., uid=33(www-data)...), confirming RCE. Use this foothold to deploy a web shell, exfiltrate data, or pivot laterally (GitHub Advisory, TastyIgniter Advisory).

Indicators of compromise

  • Network: Unusual POST requests to /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).
  • Logs: Web server access logs showing POST requests to /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.
  • File System: Unexpected PHP web shells or scripts written to the TastyIgniter installation directory or web root; new or modified files in resources/views/ or storage/ directories with suspicious content.
  • Process: Unusual child processes spawned by the PHP-FPM or Apache/Nginx worker process (e.g., /bin/sh, bash, curl, wget, python) with command-line arguments referencing shell commands or network connections.

Mitigation and workarounds

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).

Community reactions

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.

Additional resources


Source: This report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-69179CRITICAL9.1
  • PHP logoPHP
  • tastyigniter/tastyigniter
NoYesDec 02, 2026
CVE-2026-69178CRITICAL9.1
  • PHP logoPHP
  • tastyigniter/tastyigniter
NoYesDec 02, 2026
CVE-2026-69180HIGH8.6
  • PHP logoPHP
  • tastyigniter/ti-ext-payregister
NoNoDec 02, 2026
CVE-2026-69181HIGH7.6
  • PHP logoPHP
  • tastyigniter/tastyigniter
NoYesDec 02, 2026
GHSA-6w7j-7q22-7m5rMEDIUM5.9
  • PHP logoPHP
  • grazulex/laravel-atlas
NoYesDec 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management