Lucene search

K
gentooGentoo FoundationGLSA-200503-35
HistoryMar 30, 2005 - 12:00 a.m.

Smarty: Template vulnerability

2005-03-3000:00:00
Gentoo Foundation
security.gentoo.org
7

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

0.005 Low

EPSS

Percentile

75.2%

Background

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.

Description

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

These issues may allow a remote attacker to bypass the “template security” feature of Smarty, and execute arbitrary PHP code.

Workaround

Do not grant template access to untrusted users.

Resolution

All Smarty users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-php/smarty-2.6.9"
OSVersionArchitecturePackageVersionFilename
Gentooanyalldev-php/smarty< 2.6.9UNKNOWN

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

0.005 Low

EPSS

Percentile

75.2%

Related for GLSA-200503-35