MidnightBSD

Advisories for smarty

CVE-2005-0913 HIGH

Unknown vulnerability in the regex_replace modifier (modifier.regex_replace.php) in Smarty before 2.6.8 allows attackers to execute arbitrary PHP code.

CVSS 2.0

Severity: HIGH

Problem Type: NVD-CWE-Other,

Products Affected

Vendor Product Version
smarty smarty 2.6.6
smarty smarty 2.6.2
smarty smarty 2.6.4
smarty smarty 2.6.7
smarty smarty 2.6.5
smarty smarty 2.6.3
CVE-2006-7105 HIGH

PHP remote file inclusion vulnerability in libs/Smarty.class.php in Smarty 2.6.9 allows remote attackers to execute arbitrary PHP code via a URL in the filename parameter. NOTE: in the original disclosure, filename is used in a function definition, so this report is probably incorrect

CVSS 2.0

Severity: HIGH

Problem Type: CWE-94,CWE-94,

Products Affected

Vendor Product Version
smarty smarty 2.6.9
CVE-2006-7193 HIGH

PHP remote file inclusion vulnerability in unit_test/test_cases.php in Smarty 2.6.1 allows remote attackers to execute arbitrary PHP code via a URL in the SMARTY_DIR parameter. NOTE: this issue is disputed by CVE and a third party because SMARTY_DIR is a constant

CVSS 2.0

Severity: HIGH

Problem Type: NVD-CWE-Other,

Products Affected

Vendor Product Version
smarty smarty 2.6.1
CVE-2009-5052 HIGH

Multiple unspecified vulnerabilities in Smarty before 3.0.0 beta 6 have unknown impact and attack vectors.

CVSS 2.0

Severity: HIGH

Problem Type: NVD-CWE-noinfo,

Products Affected

Vendor Product Version
smarty smarty 2.4.1
smarty smarty 3.0.0
smarty smarty 2.3.1
smarty smarty 1.2.1
smarty smarty 1.0a
smarty smarty 2.5.0
smarty smarty 1.2.2
smarty smarty 1.3.1
smarty smarty 2.6.10
smarty smarty 2.6.22
smarty smarty 2.6.11
smarty smarty 2.0.1
smarty smarty 2.0.0
smarty smarty 2.2.0
smarty smarty 2.4.2
smarty smarty 2.6.18
smarty smarty 2.6.2
smarty smarty 2.6.17
smarty smarty 2.3.0
smarty smarty 2.1.0
smarty smarty 2.6.5
smarty smarty 1.4.5
smarty smarty 2.6.4
smarty smarty 1.0
smarty smarty 2.6.3
smarty smarty 2.6.12
smarty smarty 1.3.2
smarty smarty 2.6.14
smarty smarty 2.6.1
smarty smarty 2.6.13
smarty smarty 1.1.0
smarty smarty 2.6.20
smarty smarty 2.6.9
smarty smarty 1.4.2
smarty smarty 1.5.1
smarty smarty 2.4.0
smarty smarty 1.5.0
smarty smarty 1.5.2
smarty smarty 2.6.25
smarty smarty 2.6.6
smarty smarty 2.6.0
smarty smarty *
smarty smarty 2.6.7
smarty smarty 1.0b
smarty smarty 2.6.15
smarty smarty 2.1.1
smarty smarty 1.3.0
smarty smarty 1.4.3
smarty smarty 2.6.16
smarty smarty 2.6.26
smarty smarty 1.4.1
smarty smarty 1.4.6
smarty smarty 1.2.0
smarty smarty 1.4.4
smarty smarty 2.6.24
smarty smarty 1.4.0
CVE-2009-5053 HIGH

Unspecified vulnerability in Smarty before 3.0.0 beta 6 allows remote attackers to execute arbitrary PHP code by injecting this code into a cache file.

CVSS 2.0

Severity: HIGH

Problem Type: NVD-CWE-noinfo,

Products Affected

Vendor Product Version
smarty smarty 2.4.1
smarty smarty 3.0.0
smarty smarty 2.3.1
smarty smarty 1.2.1
smarty smarty 1.0a
smarty smarty 2.5.0
smarty smarty 1.2.2
smarty smarty 1.3.1
smarty smarty 2.6.10
smarty smarty 2.6.22
smarty smarty 2.6.11
smarty smarty 2.0.1
smarty smarty 2.0.0
smarty smarty 2.2.0
smarty smarty 2.4.2
smarty smarty 2.6.18
smarty smarty 2.6.2
smarty smarty 2.6.17
smarty smarty 2.3.0
smarty smarty 2.1.0
smarty smarty 2.6.5
smarty smarty 1.4.5
smarty smarty 2.6.4
smarty smarty 1.0
smarty smarty 2.6.3
smarty smarty 2.6.12
smarty smarty 1.3.2
smarty smarty 2.6.14
smarty smarty 2.6.1
smarty smarty 2.6.13
smarty smarty 1.1.0
smarty smarty 2.6.20
smarty smarty 2.6.9
smarty smarty 1.4.2
smarty smarty 1.5.1
smarty smarty 2.4.0
smarty smarty 1.5.0
smarty smarty 1.5.2
smarty smarty 2.6.25
smarty smarty 2.6.6
smarty smarty 2.6.0
smarty smarty *
smarty smarty 2.6.7
smarty smarty 1.0b
smarty smarty 2.6.15
smarty smarty 2.1.1
smarty smarty 1.3.0
smarty smarty 1.4.3
smarty smarty 2.6.16
smarty smarty 2.6.26
smarty smarty 1.4.1
smarty smarty 1.4.6
smarty smarty 1.2.0
smarty smarty 1.4.4
smarty smarty 2.6.24
smarty smarty 1.4.0
CVE-2009-5054 HIGH

Smarty before 3.0.0 beta 4 does not consider the umask value when setting the permissions of files, which might allow attackers to bypass intended access restrictions via standard filesystem operations.

CVSS 2.0

Severity: HIGH

Problem Type: CWE-264,

Products Affected

Vendor Product Version
smarty smarty 2.4.1
smarty smarty 2.3.1
smarty smarty 1.2.1
smarty smarty 1.0a
smarty smarty 2.5.0
smarty smarty 1.2.2
smarty smarty 1.3.1
smarty smarty 2.6.10
smarty smarty 2.6.22
smarty smarty 2.6.11
smarty smarty 2.0.1
smarty smarty 2.0.0
smarty smarty 2.2.0
smarty smarty 2.4.2
smarty smarty 2.6.18
smarty smarty 2.6.2
smarty smarty 2.6.17
smarty smarty 2.3.0
smarty smarty 2.1.0
smarty smarty 2.6.5
smarty smarty 1.4.5
smarty smarty 2.6.4
smarty smarty 1.0
smarty smarty 2.6.3
smarty smarty 2.6.12
smarty smarty 1.3.2
smarty smarty 2.6.14
smarty smarty 2.6.1
smarty smarty 2.6.13
smarty smarty 1.1.0
smarty smarty 2.6.20
smarty smarty 2.6.9
smarty smarty 1.4.2
smarty smarty 1.5.1
smarty smarty 2.4.0
smarty smarty 1.5.0
smarty smarty 1.5.2
smarty smarty 2.6.25
smarty smarty 2.6.6
smarty smarty 2.6.0
smarty smarty *
smarty smarty 2.6.7
smarty smarty 1.0b
smarty smarty 2.6.15
smarty smarty 2.1.1
smarty smarty 1.3.0
smarty smarty 1.4.3
smarty smarty 2.6.16
smarty smarty 1.4.1
smarty smarty 1.4.6
smarty smarty 1.2.0
smarty smarty 1.4.4
smarty smarty 2.6.24
smarty smarty 1.4.0
CVE-2010-4722 HIGH

Unspecified vulnerability in the fetch plugin in Smarty before 3.0.2 has unknown impact and remote attack vectors.

CVSS 2.0

Severity: HIGH

Problem Type: NVD-CWE-noinfo,

Products Affected

Vendor Product Version
smarty smarty 2.4.1
smarty smarty 3.0.0
smarty smarty 2.3.1
smarty smarty 1.2.1
smarty smarty 1.0a
smarty smarty 2.5.0
smarty smarty 1.2.2
smarty smarty 1.3.1
smarty smarty 2.6.10
smarty smarty 2.6.22
smarty smarty 2.6.11
smarty smarty 2.0.1
smarty smarty 2.0.0
smarty smarty 2.2.0
smarty smarty 2.4.2
smarty smarty 2.6.18
smarty smarty 2.6.2
smarty smarty 2.6.17
smarty smarty 2.3.0
smarty smarty 2.1.0
smarty smarty 2.6.5
smarty smarty 1.4.5
smarty smarty 2.6.4
smarty smarty 1.0
smarty smarty 2.6.3
smarty smarty 2.6.12
smarty smarty 1.3.2
smarty smarty 2.6.14
smarty smarty 2.6.1
smarty smarty 2.6.13
smarty smarty 1.1.0
smarty smarty 2.6.20
smarty smarty 2.6.9
smarty smarty 1.4.2
smarty smarty 1.5.1
smarty smarty 2.4.0
smarty smarty 1.5.0
smarty smarty 1.5.2
smarty smarty 2.6.25
smarty smarty 2.6.6
smarty smarty 2.6.0
smarty smarty *
smarty smarty 2.6.7
smarty smarty 1.0b
smarty smarty 2.6.15
smarty smarty 2.1.1
smarty smarty 1.3.0
smarty smarty 1.4.3
smarty smarty 2.6.16
smarty smarty 2.6.26
smarty smarty 1.4.1
smarty smarty 1.4.6
smarty smarty 1.2.0
smarty smarty 1.4.4
smarty smarty 2.6.24
smarty smarty 1.4.0
CVE-2010-4723 HIGH

Smarty before 3.0.0, when security is enabled, does not prevent access to the (1) dynamic and (2) private object members of an assigned object, which has unspecified impact and remote attack vectors.

CVSS 2.0

Severity: HIGH

Problem Type: CWE-264,

Products Affected

Vendor Product Version
smarty smarty 2.4.1
smarty smarty 3.0.0
smarty smarty 2.3.1
smarty smarty 1.2.1
smarty smarty 1.0a
smarty smarty 2.5.0
smarty smarty 1.2.2
smarty smarty 1.3.1
smarty smarty 2.6.10
smarty smarty 2.6.22
smarty smarty 2.6.11
smarty smarty 2.0.1
smarty smarty 2.0.0
smarty smarty 2.2.0
smarty smarty 2.4.2
smarty smarty 2.6.18
smarty smarty 2.6.2
smarty smarty 2.6.17
smarty smarty 2.3.0
smarty smarty 2.1.0
smarty smarty 2.6.5
smarty smarty 1.4.5
smarty smarty 2.6.4
smarty smarty 1.0
smarty smarty 2.6.3
smarty smarty 2.6.12
smarty smarty 1.3.2
smarty smarty 2.6.14
smarty smarty 2.6.1
smarty smarty 2.6.13
smarty smarty 1.1.0
smarty smarty 2.6.20
smarty smarty 2.6.9
smarty smarty 1.4.2
smarty smarty 1.5.1
smarty smarty 2.4.0
smarty smarty 1.5.0
smarty smarty 1.5.2
smarty smarty 2.6.25
smarty smarty 2.6.6
smarty smarty 2.6.0
smarty smarty *
smarty smarty 2.6.7
smarty smarty 1.0b
smarty smarty 2.6.15
smarty smarty 2.1.1
smarty smarty 1.3.0
smarty smarty 1.4.3
smarty smarty 2.6.16
smarty smarty 2.6.26
smarty smarty 1.4.1
smarty smarty 1.4.6
smarty smarty 1.2.0
smarty smarty 1.4.4
smarty smarty 2.6.24
smarty smarty 1.4.0
CVE-2010-4724 HIGH

Multiple unspecified vulnerabilities in the parser implementation in Smarty before 3.0.0 RC3 have unknown impact and remote attack vectors.

CVSS 2.0

Severity: HIGH

Problem Type: NVD-CWE-noinfo,

Products Affected

Vendor Product Version
smarty smarty 2.4.1
smarty smarty 3.0.0
smarty smarty 2.3.1
smarty smarty 1.2.1
smarty smarty 1.0a
smarty smarty 2.5.0
smarty smarty 1.2.2
smarty smarty 1.3.1
smarty smarty 2.6.10
smarty smarty 2.6.22
smarty smarty 2.6.11
smarty smarty 2.0.1
smarty smarty 2.0.0
smarty smarty 2.2.0
smarty smarty 2.4.2
smarty smarty 2.6.18
smarty smarty 2.6.2
smarty smarty 2.6.17
smarty smarty 2.3.0
smarty smarty 2.1.0
smarty smarty 2.6.5
smarty smarty 1.4.5
smarty smarty 2.6.4
smarty smarty 1.0
smarty smarty 2.6.3
smarty smarty 2.6.12
smarty smarty 1.3.2
smarty smarty 2.6.14
smarty smarty 2.6.1
smarty smarty 2.6.13
smarty smarty 1.1.0
smarty smarty 2.6.20
smarty smarty 2.6.9
smarty smarty 1.4.2
smarty smarty 1.5.1
smarty smarty 2.4.0
smarty smarty 1.5.0
smarty smarty 1.5.2
smarty smarty 2.6.25
smarty smarty 2.6.6
smarty smarty 2.6.0
smarty smarty *
smarty smarty 2.6.7
smarty smarty 1.0b
smarty smarty 2.6.15
smarty smarty 2.1.1
smarty smarty 1.3.0
smarty smarty 1.4.3
smarty smarty 2.6.16
smarty smarty 2.6.26
smarty smarty 1.4.1
smarty smarty 1.4.6
smarty smarty 1.2.0
smarty smarty 1.4.4
smarty smarty 2.6.24
smarty smarty 1.4.0
CVE-2010-4725 HIGH

Smarty before 3.0.0 RC3 does not properly handle an on value of the asp_tags option in the php.ini file, which has unspecified impact and remote attack vectors.

CVSS 2.0

Severity: HIGH

Problem Type: NVD-CWE-noinfo,

Products Affected

Vendor Product Version
smarty smarty 2.4.1
smarty smarty 3.0.0
smarty smarty 2.3.1
smarty smarty 1.2.1
smarty smarty 1.0a
smarty smarty 2.5.0
smarty smarty 1.2.2
smarty smarty 1.3.1
smarty smarty 2.6.10
smarty smarty 2.6.22
smarty smarty 2.6.11
smarty smarty 2.0.1
smarty smarty 2.0.0
smarty smarty 2.2.0
smarty smarty 2.4.2
smarty smarty 2.6.18
smarty smarty 2.6.2
smarty smarty 2.6.17
smarty smarty 2.3.0
smarty smarty 2.1.0
smarty smarty 2.6.5
smarty smarty 1.4.5
smarty smarty 2.6.4
smarty smarty 1.0
smarty smarty 2.6.3
smarty smarty 2.6.12
smarty smarty 1.3.2
smarty smarty 2.6.14
smarty smarty 2.6.1
smarty smarty 2.6.13
smarty smarty 1.1.0
smarty smarty 2.6.20
smarty smarty 2.6.9
smarty smarty 1.4.2
smarty smarty 1.5.1
smarty smarty 2.4.0
smarty smarty 1.5.0
smarty smarty 1.5.2
smarty smarty 2.6.25
smarty smarty 2.6.6
smarty smarty 2.6.0
smarty smarty *
smarty smarty 2.6.7
smarty smarty 1.0b
smarty smarty 2.6.15
smarty smarty 2.1.1
smarty smarty 1.3.0
smarty smarty 1.4.3
smarty smarty 2.6.16
smarty smarty 2.6.26
smarty smarty 1.4.1
smarty smarty 1.4.6
smarty smarty 1.2.0
smarty smarty 1.4.4
smarty smarty 2.6.24
smarty smarty 1.4.0
CVE-2010-4726 HIGH

Unspecified vulnerability in the math plugin in Smarty before 3.0.0 RC1 has unknown impact and remote attack vectors. NOTE: this might overlap CVE-2009-1669.

CVSS 2.0

Severity: HIGH

Problem Type: NVD-CWE-noinfo,

Products Affected

Vendor Product Version
smarty smarty 2.4.1
smarty smarty 3.0.0
smarty smarty 2.3.1
smarty smarty 1.2.1
smarty smarty 1.0a
smarty smarty 2.5.0
smarty smarty 1.2.2
smarty smarty 1.3.1
smarty smarty 2.6.10
smarty smarty 2.6.22
smarty smarty 2.6.11
smarty smarty 2.0.1
smarty smarty 2.0.0
smarty smarty 2.2.0
smarty smarty 2.4.2
smarty smarty 2.6.18
smarty smarty 2.6.2
smarty smarty 2.6.17
smarty smarty 2.3.0
smarty smarty 2.1.0
smarty smarty 2.6.5
smarty smarty 1.4.5
smarty smarty 2.6.4
smarty smarty 1.0
smarty smarty 2.6.3
smarty smarty 2.6.12
smarty smarty 1.3.2
smarty smarty 2.6.14
smarty smarty 2.6.1
smarty smarty 2.6.13
smarty smarty 1.1.0
smarty smarty 2.6.20
smarty smarty 2.6.9
smarty smarty 1.4.2
smarty smarty 1.5.1
smarty smarty 2.4.0
smarty smarty 1.5.0
smarty smarty 1.5.2
smarty smarty 2.6.25
smarty smarty 2.6.6
smarty smarty 2.6.0
smarty smarty *
smarty smarty 2.6.7
smarty smarty 1.0b
smarty smarty 2.6.15
smarty smarty 2.1.1
smarty smarty 1.3.0
smarty smarty 1.4.3
smarty smarty 2.6.16
smarty smarty 2.6.26
smarty smarty 1.4.1
smarty smarty 1.4.6
smarty smarty 1.2.0
smarty smarty 1.4.4
smarty smarty 2.6.24
smarty smarty 1.4.0
CVE-2010-4727 HIGH

Smarty before 3.0.0 beta 7 does not properly handle the <?php and ?> tags, which has unspecified impact and remote attack vectors.

CVSS 2.0

Severity: HIGH

Problem Type: CWE-20,

Products Affected

Vendor Product Version
smarty smarty 2.4.1
smarty smarty 3.0.0
smarty smarty 2.3.1
smarty smarty 1.2.1
smarty smarty 1.0a
smarty smarty 2.5.0
smarty smarty 1.2.2
smarty smarty 1.3.1
smarty smarty 2.6.10
smarty smarty 2.6.22
smarty smarty 2.6.11
smarty smarty 2.0.1
smarty smarty 2.0.0
smarty smarty 2.2.0
smarty smarty 2.4.2
smarty smarty 2.6.18
smarty smarty 2.6.2
smarty smarty 2.6.17
smarty smarty 2.3.0
smarty smarty 2.1.0
smarty smarty 2.6.5
smarty smarty 1.4.5
smarty smarty 2.6.4
smarty smarty 1.0
smarty smarty 2.6.3
smarty smarty 2.6.12
smarty smarty 1.3.2
smarty smarty 2.6.14
smarty smarty 2.6.1
smarty smarty 2.6.13
smarty smarty 1.1.0
smarty smarty 2.6.20
smarty smarty 2.6.9
smarty smarty 1.4.2
smarty smarty 1.5.1
smarty smarty 2.4.0
smarty smarty 1.5.0
smarty smarty 1.5.2
smarty smarty 2.6.25
smarty smarty 2.6.6
smarty smarty 2.6.0
smarty smarty *
smarty smarty 2.6.7
smarty smarty 1.0b
smarty smarty 2.6.15
smarty smarty 2.1.1
smarty smarty 1.3.0
smarty smarty 1.4.3
smarty smarty 2.6.16
smarty smarty 2.6.26
smarty smarty 1.4.1
smarty smarty 1.4.6
smarty smarty 1.2.0
smarty smarty 1.4.4
smarty smarty 2.6.24
smarty smarty 1.4.0
CVE-2014-8350 HIGH

Smarty before 3.1.21 allows remote attackers to bypass the secure mode restrictions and execute arbitrary PHP code as demonstrated by "{literal}<{/literal}script language=php>" in a template.

CVSS 2.0

Severity: HIGH

Problem Type: CWE-94,

Products Affected

Vendor Product Version
smarty smarty 3.1.1
smarty smarty 3.1.2
smarty smarty 3.1.8
smarty smarty 3.1.7
smarty smarty 2.4.1
smarty smarty 3.0.0
smarty smarty 2.3.1
smarty smarty 1.2.1
smarty smarty 3.0.3
smarty smarty 3.1.10
smarty smarty 1.0a
smarty smarty 2.5.0
smarty smarty 1.2.2
smarty smarty 3.1.17
smarty smarty 1.3.1
smarty smarty 2.6.10
smarty smarty 2.6.22
smarty smarty 2.6.11
smarty smarty 2.0.1
smarty smarty 2.0.0
smarty smarty 3.1.13
smarty smarty 2.2.0
smarty smarty 2.4.2
smarty smarty 2.6.18
smarty smarty 2.6.2
smarty smarty 2.6.17
smarty smarty 2.3.0
smarty smarty 2.1.0
smarty smarty 2.6.5
smarty smarty 3.0.7
smarty smarty 3.1.11
smarty smarty 3.1.3
smarty smarty 3.1.6
smarty smarty 1.4.5
smarty smarty 3.0.2
smarty smarty 3.1
smarty smarty 3.1.9
smarty smarty 2.6.4
smarty smarty 3.1.5
smarty smarty 3.0.4
smarty smarty 1.0
smarty smarty 2.6.3
smarty smarty 2.6.12
smarty smarty 1.3.2
smarty smarty 2.6.14
smarty smarty 2.6.1
smarty smarty 2.6.13
smarty smarty 1.1.0
smarty smarty 2.6.20
smarty smarty 3.1.16
smarty smarty 2.6.9
smarty smarty 3.1.4
smarty smarty 1.4.2
smarty smarty 1.5.1
smarty smarty 2.4.0
smarty smarty 1.5.0
smarty smarty 1.5.2
smarty smarty 2.6.25
smarty smarty 3.1.12
smarty smarty 3.0.5
smarty smarty 3.1.19
smarty smarty 2.6.6
smarty smarty 3.0.6
smarty smarty 3.1.18
smarty smarty 2.6.0
smarty smarty 3.1.0
smarty smarty *
smarty smarty 2.6.7
smarty smarty 1.0b
smarty smarty 2.6.15
smarty smarty 2.1.1
smarty smarty 1.3.0
smarty smarty 3.1.14
smarty smarty 3.0.1
smarty smarty 1.4.3
smarty smarty 2.6.16
smarty smarty 2.6.26
smarty smarty 3.1.15
smarty smarty 1.4.1
smarty smarty 1.4.6
smarty smarty 1.2.0
smarty smarty 1.4.4
smarty smarty 2.6.24
smarty smarty 1.4.0
CVE-2017-1000480 HIGH

Smarty 3 before 3.1.32 is vulnerable to a PHP code injection when calling fetch() or display() functions on custom resources that does not sanitize template name.

CVSS 2.0

Severity: HIGH

Problem Type: CWE-94,

Products Affected

Vendor Product Version
smarty smarty *
CVE-2018-13982 MEDIUM

Smarty_Security::isTrustedResourceDir() in Smarty before 3.1.33 is prone to a path traversal vulnerability due to insufficient template code sanitization. This allows attackers controlling the executed template code to bypass the trusted directory security restriction and read arbitrary files.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 3.9 3.6

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-22,

Products Affected

Vendor Product Version
smarty smarty *
debian debian_linux 9.0
CVE-2018-16831 HIGH

Smarty before 3.1.33-dev-4 allows attackers to bypass the trusted_dir protection mechanism via a file:./../ substring in an include statement.

CVSS 2.0

Severity: HIGH

Problem Type: CWE-22,

Products Affected

Vendor Product Version
smarty smarty *
CVE-2018-25047

In Smarty before 3.1.47 and 4.x before 4.2.1, libs/plugins/function.mailto.php allows XSS. A web page that uses smarty_function_mailto, and that could be parameterized using GET or POST input parameters, could allow injection of JavaScript code by a user.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 5.4 MEDIUM CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N 2.3 2.7

Products Affected

Vendor Product Version
debian debian_linux 10.0
smarty smarty *
CVE-2021-21408 MEDIUM

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.43 and 4.0.3, template authors could run restricted static php methods. Users should upgrade to version 3.1.43 or 4.0.3 to receive a patch.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-20,CWE-20,

Products Affected

Vendor Product Version
debian debian_linux 11.0
debian debian_linux 10.0
smarty smarty *
fedoraproject fedora 37
fedoraproject fedora 36
debian debian_linux 9.0
CVE-2021-26119 MEDIUM

Smarty before 3.1.39 allows a Sandbox Escape because $smarty.template_object can be accessed in sandbox mode.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N 3.9 3.6

CVSS 2.0

Severity: MEDIUM

Problem Type: NVD-CWE-noinfo,

Products Affected

Vendor Product Version
debian debian_linux 11.0
debian debian_linux 10.0
smarty smarty *
debian debian_linux 9.0
CVE-2021-26120 HIGH

Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 3.9 5.9

CVSS 2.0

Severity: HIGH

Problem Type: CWE-94,

Products Affected

Vendor Product Version
debian debian_linux 11.0
debian debian_linux 10.0
smarty smarty *
debian debian_linux 9.0
CVE-2021-29454 MEDIUM

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.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-74,CWE-74,

Products Affected

Vendor Product Version
debian debian_linux 11.0
debian debian_linux 10.0
smarty smarty *
fedoraproject fedora 37
fedoraproject fedora 36
debian debian_linux 9.0
CVE-2022-29221 MEDIUM

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.45 and 4.1.1, template authors could inject php code by choosing a malicious {block} name or {include} file name. Sites that cannot fully trust template authors should upgrade to versions 3.1.45 or 4.1.1 to receive a patch for this issue. There are currently no known workarounds.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-94,CWE-94,

Products Affected

Vendor Product Version
debian debian_linux 11.0
debian debian_linux 10.0
smarty smarty *
fedoraproject fedora 37
fedoraproject fedora 36
debian debian_linux 9.0
CVE-2023-28447

Smarty is a template engine for PHP. In affected versions smarty did not properly escape javascript code. An attacker could exploit this vulnerability to execute arbitrary JavaScript code in the context of the user's browser session. This may lead to unauthorized access to sensitive user data, manipulation of the web application's behavior, or unauthorized actions performed on behalf of the user. Users are advised to upgrade to either version 3.1.48 or to 4.3.1 to resolve this issue. There are no known workarounds for this vulnerability.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
security-advisories@github.com 7.1 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L 2.8 3.7
nvd@nist.gov 6.1 MEDIUM CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N 2.8 2.7

Products Affected

Vendor Product Version
smarty smarty *
fedoraproject fedora 37
fedoraproject fedora 36
fedoraproject fedora 38
CVE-2023-41661

Auth. (admin+) Stored Cross-Site Scripting (XSS) vulnerability in PressPage Entertainment Inc. Smarty for WordPress plugin <= 3.1.35 versions.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 4.8 MEDIUM CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N 1.7 2.7
audit@patchstack.com 5.9 MEDIUM CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L 1.7 3.7

Products Affected

Vendor Product Version
smarty smarty *