Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.42 and 4.0.2, template authors could run arbitrary PHP code by crafting a malicious math string. If a math string was passed through as user provided data to the math function, external users could run arbitrary PHP code by crafting a malicious math string. Users should upgrade to version 3.1.42 or 4.0.2 to receive a patch.
The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
| Name | Vendor | Start Version | End Version | 
|---|---|---|---|
| Smarty | Smarty | * | 3.1.42 (excluding) | 
| Smarty | Smarty | 4.0.0 (including) | 4.0.2 (excluding) | 
| Smarty3 | Ubuntu | bionic | * | 
| Smarty3 | Ubuntu | devel | * | 
| Smarty3 | Ubuntu | esm-apps/bionic | * | 
| Smarty3 | Ubuntu | esm-apps/focal | * | 
| Smarty3 | Ubuntu | esm-apps/jammy | * | 
| Smarty3 | Ubuntu | esm-apps/noble | * | 
| Smarty3 | Ubuntu | esm-apps/xenial | * | 
| Smarty3 | Ubuntu | focal | * | 
| Smarty3 | Ubuntu | hirsute | * | 
| Smarty3 | Ubuntu | impish | * | 
| Smarty3 | Ubuntu | jammy | * | 
| Smarty3 | Ubuntu | kinetic | * | 
| Smarty3 | Ubuntu | lunar | * | 
| Smarty3 | Ubuntu | mantic | * | 
| Smarty3 | Ubuntu | noble | * | 
| Smarty3 | Ubuntu | oracular | * | 
| Smarty3 | Ubuntu | plucky | * | 
| Smarty3 | Ubuntu | trusty | * | 
| Smarty3 | Ubuntu | upstream | * | 
| Smarty3 | Ubuntu | xenial | * |