The smarty_function_math function in libs/plugins/function.math.php in Smarty 2.6.22 allows context-dependent attackers to execute arbitrary commands via shell metacharacters in the equation attribute of the math function. NOTE: some of these details are obtained from third party information.
osvdb.org/54380
secunia.com/advisories/35072
secunia.com/advisories/35219
www.securityfocus.com/bid/34918
www.ubuntu.com/usn/usn-791-3
exchange.xforce.ibmcloud.com/vulnerabilities/50457
www.exploit-db.com/exploits/8659
www.redhat.com/archives/fedora-package-announce/2009-May/msg01274.html
www.redhat.com/archives/fedora-package-announce/2009-May/msg01283.html
www.redhat.com/archives/fedora-package-announce/2009-May/msg01287.html