blob: 4647de95c702a2013a756eb3a027350940388139 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<glsa id="200503-35">
<title>Smarty: Template vulnerability</title>
Smarty's "Template security" feature can be bypassed, potentially allowing
a remote attacker to execute arbitrary PHP code.
<product type="ebuild">smarty</product>
<announced>March 30, 2005</announced>
<revised>May 22, 2006: 03</revised>
<package name="dev-php/smarty" auto="yes" arch="*">
<unaffected range="ge">2.6.9</unaffected>
<vulnerable range="lt">2.6.9</vulnerable>
Smarty is a template engine for PHP. The "template security" feature of
Smarty is designed to help reduce the risk of a system compromise when
you have untrusted parties editing templates.
A vulnerability has been discovered within the regex_replace modifier
of the Smarty templates when allowing access to untrusted users.
Furthermore, it was possible to call functions from {if} statements and
{math} functions.
<impact type="high">
These issues may allow a remote attacker to bypass the "template
security" feature of Smarty, and execute arbitrary PHP code.
Do not grant template access to untrusted users.
All Smarty users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose &quot;&gt;=dev-php/smarty-2.6.9&quot;</code>
<uri link="">Smarty ChangeLog</uri>
<uri link="">CVE-2005-0913</uri>
<metadata tag="requester" timestamp="Thu, 24 Mar 2005 17:18:18 +0000">
<metadata tag="bugReady" timestamp="Mon, 28 Mar 2005 13:11:35 +0000">
<metadata tag="submitter" timestamp="Mon, 28 Mar 2005 13:23:33 +0000">