CVE-2021-21408: Access to restricted PHP code by dynamic static class access in smarty
Impact Template authors could run restricted static php methods.
Patches Please upgrade to 3.1.40 or higher.
References See the documentation on Smarty security features on the staticclasses access filter.
For more information If you have any questions or comments about this advisory please open an issue in the Smarty repo
Other sources
Access to restricted PHP code by dynamic static class access
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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2021-21408?
CVE-2021-21408 has been classified as a high-severity vulnerability due to its potential to allow unrestricted execution of static PHP methods.
How do I fix CVE-2021-21408?
To mitigate CVE-2021-21408, you should upgrade Smarty to version 3.1.40 or higher or 4.0.3.
Which versions of Smarty are affected by CVE-2021-21408?
CVE-2021-21408 affects versions of Smarty prior to 3.1.40 and those in the 4.0.0 to 4.0.3 range.
What type of vulnerability is CVE-2021-21408?
CVE-2021-21408 is a security vulnerability that allows template authors to execute restricted static PHP methods.
Where can I find more details about CVE-2021-21408?
Detailed information about CVE-2021-21408 can typically be found in the security advisories issued by Smarty.