CVE-2026-77612: TastyIgniter: TemplateSandbox Bypass via Higher-Order PHP Functions Leads to Remote Code Execution
TastyIgniter is an open-source online ordering, table reservation, and restaurant management system. From version 4.0.0 to before version 4.3.1, TastyIgniter's TemplateSandbox class, uses an incomplete blocklist of dangerous PHP functions. The blocklist explicitly forbids system(), exec(), shellexec(), and similar functions by name, but does not restrict higher-order functions such as calluserfunc, calluserfuncarray, arraymap, arrayfilter, and pregreplacecallback. These functions can invoke any PHP callable -- including all the blocked ones -- allowing an authenticated staff user with the Site.Themes permission to achieve Remote Code Execution (RCE) on the server. This issue has been patched in version 4.3.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.3.1
Event History
Frequently Asked Questions
Which deployments are affected?
TastyIgniter versions 4.0.0 through versions before 4.3.1 are affected. The issue is patched in version 4.3.1.
What access does an attacker need to exploit this issue?
An attacker must be authenticated as a staff user and have the Site.Themes permission. They can use higher-order PHP functions in templates to invoke dangerous PHP functions that the sandbox blocks only by name.
What is the practical impact of successful exploitation?
Successful exploitation allows remote code execution on the server. The stated impact includes high confidentiality, integrity, and availability consequences, with scope changed.