CRITICAL9.8
GHSA-6frx-2r5w-c524
Smarty3 Arbitrary PHP Code Execution
Quick fix
GHSA-6frx-2r5w-c524 — smarty/smarty: upgrade to the fixed version with the command below.
composer require smarty/smarty:^3.0.7Details
The `$smarty.template` variable in Smarty3 allows attackers to possibly execute arbitrary PHP code via the `sysplugins/smarty_internal_compile_private_special_variable.php` file.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2011-1028[ADVISORY]
- https://github.com/smarty-php/smarty/commit/0154f17de2b2dd16ff9c016923015ac19af9c0cb[WEB]
- https://github.com/smarty-php/smarty[PACKAGE]
- https://seclists.org/oss-sec/2011/q1/313[WEB]
- https://security-tracker.debian.org/tracker/CVE-2011-1028[WEB]
- https://web.archive.org/web/20110609032516/http://smarty-php.googlecode.com/svn/trunk/distribution/change_log.txt[WEB]
- https://www.smarty.net/forums/viewtopic.php?t=18815[WEB]