Debian DSA-1520-1 : smarty - insufficient input sanitising

high Nessus Plugin ID 31591


The remote Debian host is missing a security-related update.


It was discovered that the regex module in Smarty, a PHP templating engine, allows attackers to call arbitrary PHP functions via templates using the regex_replace plugin by a specially crafted search string.


Upgrade the smarty package.

For the old stable distribution (sarge), this problem has been fixed in version 2.6.9-1sarge1.

For the stable distribution (etch), this problem has been fixed in version 2.6.14-1etch1.

See Also

Plugin Details

Severity: High

ID: 31591

File Name: debian_DSA-1520.nasl

Version: 1.16

Type: local

Agent: unix

Published: 3/17/2008

Updated: 1/4/2021

Supported Sensors: Agentless Assessment, Frictionless Assessment Agent, Nessus Agent

Risk Information


Risk Factor: Medium

Score: 5.2


Risk Factor: High

Base Score: 7.5

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

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:smarty, cpe:/o:debian:debian_linux:3.1, cpe:/o:debian:debian_linux:4.0

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Patch Publication Date: 3/16/2008

Reference Information

CVE: CVE-2008-1066

DSA: 1520

CWE: 20