Description
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.
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.
| Vendor | Product | Version | Platform |
|---|---|---|---|
| smarty | smarty | 2.6.1 | – |
| smarty | smarty | 2.6.2 | – |
| smarty | smarty | 2.6.3 | – |
| smarty | smarty | 2.6.4 | – |
| smarty | smarty | 2.6.5 | – |
| smarty | smarty | 2.6.6 | – |
| smarty | smarty | 2.6.7 | – |
| smarty | smarty | 2.6.9 | – |
| smarty | smarty | 2.6.10 | – |
| smarty | smarty | 2.6.11 | – |
| smarty | smarty | 2.6.12 | – |
| smarty | smarty | 2.6.13 | – |
| smarty | smarty | 2.6.14 | – |
| smarty | smarty | 2.6.15 | – |
| smarty | smarty | 2.6.16 | – |
| smarty | smarty | 2.6.17 | – |
| smarty | smarty | 2.6.18 | – |
| smarty | smarty | 2.6.20 | – |
| smarty | smarty | 2.6.22 | – |
| smarty | smarty | 2.6.24 | – |
| smarty | smarty | 2.6.25 | – |
| smarty | smarty | 2.6.26 | – |
| smarty | smarty | 3.0.0 | – |
| smarty | smarty | 3.0.0 beta4 | – |
| smarty | smarty | 3.0.0 beta5 | – |
| smarty | smarty | 3.0.0 beta6 | – |
| smarty | smarty | 3.0.0 beta7 | – |
| smarty | smarty | 3.0.0 beta8 | – |
| smarty | smarty | 3.0.0 rc1 | – |
| smarty | smarty | 3.0.0 rc2 | – |
| smarty | smarty | 3.0.0 rc3 | – |
| smarty | smarty | 3.0.0 rc4 | – |
| smarty | smarty | 3.0.1 | – |
| smarty | smarty | 3.0.2 | – |
| smarty | smarty | 3.0.3 | – |
| smarty | smarty | 3.0.4 | – |
| smarty | smarty | 3.0.5 | – |
| smarty | smarty | 3.0.6 | – |
| smarty | smarty | 3.0.7 | – |
| smarty | smarty | 3.1 rc1 | – |
| smarty | smarty | 3.1.0 | – |
| smarty | smarty | 3.1.1 | – |
| smarty | smarty | 3.1.2 | – |
| smarty | smarty | 3.1.3 | – |
| smarty | smarty | 3.1.4 | – |
| smarty | smarty | 3.1.5 | – |
| smarty | smarty | 3.1.6 | – |
| smarty | smarty | 3.1.7 | – |
| smarty | smarty | 3.1.8 | – |
| smarty | smarty | 3.1.9 | – |
| smarty | smarty | 3.1.10 | – |
| smarty | smarty | 3.1.11 | – |
| smarty | smarty | 3.1.12 | – |
| smarty | smarty | 3.1.13 | – |
| smarty | smarty | 3.1.14 | – |
| smarty | smarty | 3.1.15 | – |
| smarty | smarty | 3.1.16 | – |
| smarty | smarty | 3.1.17 | – |
| smarty | smarty | 3.1.18 | – |
| smarty | smarty | 3.1.19 | – |
| smarty | smarty | <= 3.1.20 | – |
| smarty | smarty | 1.0 | – |
| smarty | smarty | 1.0a | – |
| smarty | smarty | 1.0b | – |
| smarty | smarty | 1.1.0 | – |
| smarty | smarty | 1.2.0 | – |
| smarty | smarty | 1.2.1 | – |
| smarty | smarty | 1.2.2 | – |
| smarty | smarty | 1.3.0 | – |
| smarty | smarty | 1.3.1 | – |
| smarty | smarty | 1.3.2 | – |
| smarty | smarty | 1.4.0 | – |
| smarty | smarty | 1.4.0 b1 | – |
| smarty | smarty | 1.4.0 b2 | – |
| smarty | smarty | 1.4.1 | – |
| smarty | smarty | 1.4.2 | – |
| smarty | smarty | 1.4.3 | – |
| smarty | smarty | 1.4.4 | – |
| smarty | smarty | 1.4.5 | – |
| smarty | smarty | 1.4.6 | – |
| smarty | smarty | 1.5.0 | – |
| smarty | smarty | 1.5.1 | – |
| smarty | smarty | 1.5.2 | – |
| smarty | smarty | 2.0.0 | – |
| smarty | smarty | 2.0.1 | – |
| smarty | smarty | 2.1.0 | – |
| smarty | smarty | 2.1.1 | – |
| smarty | smarty | 2.2.0 | – |
| smarty | smarty | 2.3.0 | – |
| smarty | smarty | 2.3.1 | – |
| smarty | smarty | 2.4.0 | – |
| smarty | smarty | 2.4.1 | – |
| smarty | smarty | 2.4.2 | – |
| smarty | smarty | 2.5.0 | – |
| smarty | smarty | 2.5.0 rc1 | – |
| smarty | smarty | 2.5.0 rc2 | – |
| smarty | smarty | 2.6.0 | – |
| smarty | smarty | 2.6.0 rc1 | – |
| smarty | smarty | 2.6.0 rc2 | – |
| smarty | smarty | 2.6.0 rc3 | – |
CWE-94 Improper Control of Generation of Code
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
| Scope | Impact |
|---|---|
| Access Control | Bypass Protection Mechanism In some cases, injectable code controls authentication; this may lead to a remote vulnerability. |
| Access Control | Gain Privileges or Assume Identity Injected code can access resources that the attacker is directly prevented from accessing. |
| Integrity, Confidentiality, Availability | Execute Unauthorized Code or Commands When a product allows a user's input to contain code syntax, it might be possible for an attacker to craft the code in such a way that it will alter the intended control flow of the product. As a result, code injection can often result in the execution of arbitrary code. Code injection attacks can also lead to loss of data integrity in nearly all cases, since the control-plane data injected is always incidental to data recall or writing. |
| Non-Repudiation | Hide Activities Often the actions performed by injected control code are unlogged. |
All 5,907 CWE-94 CVEs, with trend and prevention
Source: MITRE CWE catalog · cwe.mitre.org