Summary
The TastyIgniter mail template editor is vulnerable to server-side template injection (SSTI), allowing an admin user with the relevant permission to execute PHP code on the server. Version 4.3.1 contains the fix.
What happened
The mail template editor does not validate or sanitize the template body content, resulting in server-side template injection (CWE-1336). According to the source, an admin user with the Admin.MailTemplates permission can abuse this flaw to execute arbitrary PHP code on the server, i.e. full remote code execution.
Why it matters
The source rates the vulnerability as critical, with a CVSS 3.1 score of 9.1 (vector CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H). Exploitation requires an administrator account with the stated permission; in that case, an attacker could gain access to the system. The source does not indicate active exploitation, and CISA's KEV catalog does not list it as exploited.
Affected products and versions
tastyigniter/tastyigniter (composer): versions < 4.3.1. Fixed version: 4.3.1.
| Product | Versions | Fixed in |
|---|---|---|
| tastyigniter/tastyigniter | < 4.3.1 | 4.3.1 |
Action recommended by the source
The vendor indicates the fix is in TastyIgniter version 4.3.1; the source does not mention other mitigations. References: https://github.com/advisories/GHSA-743w-g9pf-8p94, https://github.com/tastyigniter/TastyIgniter/security/advisories/GHSA-743w-g9pf-8p94, https://github.com/tastyigniter/core/commit/785aa660f77fee9a221857b8b1f11b68a35fd257 and https://github.com/tastyigniter/core/releases/tag/v4.3.1.
Fixed in: 4.3.1
Sources and references
- https://github.com/advisories/GHSA-743w-g9pf-8p94 — GHSA
- https://github.com/tastyigniter/TastyIgniter/security/advisories/GHSA-743w-g9pf-8p94 — GHSA
- https://github.com/tastyigniter/core/commit/785aa660f77fee9a221857b8b1f11b68a35fd257 — GHSA
- https://github.com/tastyigniter/core/releases/tag/v4.3.1 — GHSA
- https://github.com/tastyigniter/TastyIgniter — OSV
Weaknesses (CWE): CWE-1336
Relevant change history
Advisory correction
The preliminary version was replaced by the full write-up.
Published
Preliminary advisory published.