GitHub Advisory Database
GHSA-2pmx-6mm6-6v72
Smarty arbitrary PHP code execution
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | smarty/smarty | All versions before 3.1.21 (fixed in 3.1.21) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2014-8350
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765920
- https://code.google.com/p/smarty-php/source/browse/trunk/distribution/change_log.txt?r=4902
- https://exchange.xforce.ibmcloud.com/vulnerabilities/97725
- https://github.com/smarty-php/smarty
- http://advisories.mageia.org/MGASA-2014-0468.html
- http://seclists.org/oss-sec/2014/q4/420
- http://seclists.org/oss-sec/2014/q4/421
- http://www.mandriva.com/security/advisories?name=MDVSA-2014:221
- http://www.securityfocus.com/bid/70708