What’s Vulnerable › Vulnerabilities

CVE-2021-21408: Access to restricted PHP code by dynamic static class access in smarty

Description

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 products

How to fix

Upgrade to a fixed version: Smarty 3.1.43, 4.0.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-21408 or the next vulnerability affects your stack